Skip to content

Commit f7caddf

Browse files
aknautiyalrodrigovivi
authored andcommitted
drm/i915/dp: Fix the computation for compressed_bpp for DISPLAY < 13
For DISPLAY < 13, compressed bpp is chosen from a list of supported compressed bpps. Fix the condition to choose the appropriate compressed bpp from the list. Fixes: 1c56e9a ("drm/i915/dp: Get optimal link config to have best compressed bpp") Cc: Ankit Nautiyal <[email protected]> Cc: Stanislav Lisovskiy <[email protected]> Cc: Jani Nikula <[email protected]> Cc: <[email protected]> # v6.7+ Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10162 Signed-off-by: Ankit Nautiyal <[email protected]> Reviewed-by: Suraj Kandpal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 5a1da42) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 6db3125 commit f7caddf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,8 +1917,9 @@ icl_dsc_compute_link_config(struct intel_dp *intel_dp,
19171917
dsc_max_bpp = min(dsc_max_bpp, pipe_bpp - 1);
19181918

19191919
for (i = 0; i < ARRAY_SIZE(valid_dsc_bpp); i++) {
1920-
if (valid_dsc_bpp[i] < dsc_min_bpp ||
1921-
valid_dsc_bpp[i] > dsc_max_bpp)
1920+
if (valid_dsc_bpp[i] < dsc_min_bpp)
1921+
continue;
1922+
if (valid_dsc_bpp[i] > dsc_max_bpp)
19221923
break;
19231924

19241925
ret = dsc_compute_link_config(intel_dp,

0 commit comments

Comments
 (0)