diff options
| author | Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> | 2026-07-09 17:09:50 +0530 |
|---|---|---|
| committer | Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com> | 2026-07-22 13:41:15 +0530 |
| commit | a0e65490319c468f4585e84994a7a4085b5da341 (patch) | |
| tree | f538b21a95ac27dbf6b05302d40ea05ec8d7c88f /drivers/gpu | |
| parent | b201029ca6956e18a6762fc955d1f497030ff912 (diff) | |
| download | linux-next-a0e65490319c468f4585e84994a7a4085b5da341.tar.gz linux-next-a0e65490319c468f4585e84994a7a4085b5da341.zip | |
drm/i915/dp: s/intel_dp_needs_vsc_sdp/intel_dp_needs_vsc_colorimetry
The function answers whether a VSC SDP with colorimetry and pixel
encoding payload is required by the content being displayed.
Rename it to reflect that.
No functional change intended.
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Pranay Samala <pranay.samala@intel.com>
Link: https://patch.msgid.link/20260709113951.3557968-2-chaitanya.kumar.borah@intel.com
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_ddi.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp.c | 8 | ||||
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_dp.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index 617106c68cb4..ec7ebb889c27 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -470,7 +470,7 @@ void intel_ddi_set_dp_msa(const struct intel_crtc_state *crtc_state, * YCBCR 420, HDR BT.2020 signals we should program MSA MISC1 fields * which indicate VSC SDP for the Pixel Encoding/Colorimetry Format. */ - if (intel_dp_needs_vsc_sdp(crtc_state, conn_state)) + if (intel_dp_needs_vsc_colorimetry(crtc_state, conn_state)) temp |= DP_MSA_MISC_COLOR_VSC_SDP; intel_de_write(display, TRANS_MSA_MISC(display, cpu_transcoder), diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index ea557af82662..429fdfa6f153 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -3123,7 +3123,7 @@ static void intel_dp_compute_vsc_sdp(struct intel_dp *intel_dp, struct drm_dp_vsc_sdp *vsc; if ((!intel_dp->colorimetry_support || - !intel_dp_needs_vsc_sdp(crtc_state, conn_state)) && + !intel_dp_needs_vsc_colorimetry(crtc_state, conn_state)) && !crtc_state->has_psr) return; @@ -3133,7 +3133,7 @@ static void intel_dp_compute_vsc_sdp(struct intel_dp *intel_dp, vsc->sdp_type = DP_SDP_VSC; /* Needs colorimetry */ - if (intel_dp_needs_vsc_sdp(crtc_state, conn_state)) { + if (intel_dp_needs_vsc_colorimetry(crtc_state, conn_state)) { intel_dp_compute_vsc_colorimetry(crtc_state, conn_state, vsc); } else if (crtc_state->has_panel_replay) { @@ -5066,8 +5066,8 @@ static bool intel_dp_get_and_ack_sink_irq_esi_sst(struct intel_dp *intel_dp, u8 } bool -intel_dp_needs_vsc_sdp(const struct intel_crtc_state *crtc_state, - const struct drm_connector_state *conn_state) +intel_dp_needs_vsc_colorimetry(const struct intel_crtc_state *crtc_state, + const struct drm_connector_state *conn_state) { /* * As per DP 1.4a spec section 2.2.4.3 [MSA Field for Indication diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h index 0ec519fa1236..04fae203bb69 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.h +++ b/drivers/gpu/drm/i915/display/intel_dp.h @@ -128,8 +128,8 @@ int intel_dp_max_link_data_rate(struct intel_dp *intel_dp, bool intel_dp_joiner_needs_dsc(struct intel_display *display, int num_joined_pipes); bool intel_dp_has_joiner(struct intel_dp *intel_dp); -bool intel_dp_needs_vsc_sdp(const struct intel_crtc_state *crtc_state, - const struct drm_connector_state *conn_state); +bool intel_dp_needs_vsc_colorimetry(const struct intel_crtc_state *crtc_state, + const struct drm_connector_state *conn_state); void intel_dp_set_infoframes(struct intel_encoder *encoder, bool enable, const struct intel_crtc_state *crtc_state, const struct drm_connector_state *conn_state); |
