mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/i915/dp: Add missing slice count check during mode validation
Add the missing check for a valid slice count during
mode validation when DSC is enabled.
Cc: Vinod Govindapillai <vinod.govindapillai@intel.com>
Fixes: 745395b51c ("drm/i915/dp: Add intel_dp_mode_valid_with_dsc()")
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20260216070421.714884-2-imre.deak@intel.com
This commit is contained in:
parent
daa199abc3
commit
ec4db429fd
|
|
@ -2595,6 +2595,9 @@ bool intel_dp_mode_valid_with_dsc(struct intel_connector *connector,
|
|||
if (min_bpp_x16 <= 0 || min_bpp_x16 > max_bpp_x16)
|
||||
return false;
|
||||
|
||||
if (dsc_slice_count == 0)
|
||||
return false;
|
||||
|
||||
return is_bw_sufficient_for_dsc_config(intel_dp,
|
||||
link_clock, lane_count,
|
||||
mode_clock, mode_hdisplay,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user