summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2025-12-22 17:35:36 +0200
committerImre Deak <imre.deak@intel.com>2026-01-13 18:42:15 +0200
commit07b34db2a0982480a30fe001d5f480d9e58e24db (patch)
tree4e102590f31a3745e5869957cd5d6524ab583660 /drivers/gpu
parent9212733a30e349536e2c17baa5ac9b279b948877 (diff)
drm/i915/dp: Pass mode clock to dsc_throughput_quirk_max_bpp_x16()
Prepare for follow-up changes using dsc_throughput_quirk_max_bpp_x16() without an intel_crtc_state pointer. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20251222153547.713360-10-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/display/intel_dp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 57b93a811cb6..bed41d7f97e8 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2617,11 +2617,8 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
static int
dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
- const struct intel_crtc_state *crtc_state)
+ int mode_clock)
{
- const struct drm_display_mode *adjusted_mode =
- &crtc_state->hw.adjusted_mode;
-
if (!connector->dp.dsc_throughput_quirk)
return INT_MAX;
@@ -2641,7 +2638,7 @@ dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
* smaller than the YUV422/420 value, but let's not depend on this
* assumption.
*/
- if (adjusted_mode->crtc_clock <
+ if (mode_clock <
min(connector->dp.dsc_branch_caps.overall_throughput.rgb_yuv444,
connector->dp.dsc_branch_caps.overall_throughput.yuv422_420) / 2)
return INT_MAX;
@@ -2705,7 +2702,8 @@ intel_dp_compute_config_link_bpp_limits(struct intel_connector *connector,
max_link_bpp_x16 = min(max_link_bpp_x16, fxp_q4_from_int(dsc_max_bpp));
- throughput_max_bpp_x16 = dsc_throughput_quirk_max_bpp_x16(connector, crtc_state);
+ throughput_max_bpp_x16 =
+ dsc_throughput_quirk_max_bpp_x16(connector, adjusted_mode->crtc_clock);
if (throughput_max_bpp_x16 < max_link_bpp_x16) {
max_link_bpp_x16 = throughput_max_bpp_x16;