Commit ca4ca339 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915/dp: s/intel_dp_hdmi_ycbcr420/intel_dp_is_ycbcr420/

intel_dp_hdmi_ycbcr420() does account for native DP 4:2:0
output as well, so lets rename it a bit.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220322120015.28074-5-ville.syrjala@linux.intel.comReviewed-by: default avatarUma Shankar <uma.shankar@intel.com>
parent 97e04764
...@@ -1130,8 +1130,8 @@ static bool intel_dp_supports_dsc(struct intel_dp *intel_dp, ...@@ -1130,8 +1130,8 @@ static bool intel_dp_supports_dsc(struct intel_dp *intel_dp,
drm_dp_sink_supports_dsc(intel_dp->dsc_dpcd); drm_dp_sink_supports_dsc(intel_dp->dsc_dpcd);
} }
static bool intel_dp_hdmi_ycbcr420(struct intel_dp *intel_dp, static bool intel_dp_is_ycbcr420(struct intel_dp *intel_dp,
const struct intel_crtc_state *crtc_state) const struct intel_crtc_state *crtc_state)
{ {
return crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420 || return crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR420 ||
(crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR444 && (crtc_state->output_format == INTEL_OUTPUT_FORMAT_YCBCR444 &&
...@@ -1142,7 +1142,7 @@ static bool intel_dp_hdmi_bpc_possible(struct intel_dp *intel_dp, ...@@ -1142,7 +1142,7 @@ static bool intel_dp_hdmi_bpc_possible(struct intel_dp *intel_dp,
const struct intel_crtc_state *crtc_state, const struct intel_crtc_state *crtc_state,
int bpc) int bpc)
{ {
bool ycbcr420_output = intel_dp_hdmi_ycbcr420(intel_dp, crtc_state); bool ycbcr420_output = intel_dp_is_ycbcr420(intel_dp, crtc_state);
int clock = crtc_state->hw.adjusted_mode.crtc_clock; int clock = crtc_state->hw.adjusted_mode.crtc_clock;
return intel_hdmi_bpc_possible(crtc_state, bpc, return intel_hdmi_bpc_possible(crtc_state, bpc,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment