mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 20:30:26 -04:00
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
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user