Skip to content

Commit a63bbb8

Browse files
committed
drm/i915/dp: Fail state computation for invalid max sink compressed BPP value
There is no reason to accept an invalid maximum sink compressed BPP value (i.e. 0), fail the state computation in this case. Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Link: https://patch.msgid.link/20251215192357.172201-16-imre.deak@intel.com
1 parent 5c2d799 commit a63bbb8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,8 +2623,7 @@ intel_dp_compute_config_link_bpp_limits(struct intel_dp *intel_dp,
26232623
dsc_sink_max_bpp = intel_dp_dsc_sink_max_compressed_bpp(connector,
26242624
crtc_state,
26252625
limits->pipe.max_bpp / 3);
2626-
dsc_max_bpp = dsc_sink_max_bpp ?
2627-
min(dsc_sink_max_bpp, dsc_src_max_bpp) : dsc_src_max_bpp;
2626+
dsc_max_bpp = min(dsc_sink_max_bpp, dsc_src_max_bpp);
26282627
dsc_max_bpp = min(dsc_max_bpp, joiner_max_bpp);
26292628

26302629
max_link_bpp_x16 = min(max_link_bpp_x16, fxp_q4_from_int(dsc_max_bpp));

0 commit comments

Comments
 (0)