Skip to content

Commit 07b34db

Browse files
committed
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
1 parent 9212733 commit 07b34db

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2617,11 +2617,8 @@ int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
26172617

26182618
static int
26192619
dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
2620-
const struct intel_crtc_state *crtc_state)
2620+
int mode_clock)
26212621
{
2622-
const struct drm_display_mode *adjusted_mode =
2623-
&crtc_state->hw.adjusted_mode;
2624-
26252622
if (!connector->dp.dsc_throughput_quirk)
26262623
return INT_MAX;
26272624

@@ -2641,7 +2638,7 @@ dsc_throughput_quirk_max_bpp_x16(const struct intel_connector *connector,
26412638
* smaller than the YUV422/420 value, but let's not depend on this
26422639
* assumption.
26432640
*/
2644-
if (adjusted_mode->crtc_clock <
2641+
if (mode_clock <
26452642
min(connector->dp.dsc_branch_caps.overall_throughput.rgb_yuv444,
26462643
connector->dp.dsc_branch_caps.overall_throughput.yuv422_420) / 2)
26472644
return INT_MAX;
@@ -2705,7 +2702,8 @@ intel_dp_compute_config_link_bpp_limits(struct intel_connector *connector,
27052702

27062703
max_link_bpp_x16 = min(max_link_bpp_x16, fxp_q4_from_int(dsc_max_bpp));
27072704

2708-
throughput_max_bpp_x16 = dsc_throughput_quirk_max_bpp_x16(connector, crtc_state);
2705+
throughput_max_bpp_x16 =
2706+
dsc_throughput_quirk_max_bpp_x16(connector, adjusted_mode->crtc_clock);
27092707
if (throughput_max_bpp_x16 < max_link_bpp_x16) {
27102708
max_link_bpp_x16 = throughput_max_bpp_x16;
27112709

0 commit comments

Comments
 (0)