We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf3ec9 commit 230b19bCopy full SHA for 230b19b
drivers/gpu/drm/i915/display/intel_dp.c
@@ -2072,11 +2072,10 @@ icl_dsc_compute_link_config(struct intel_dp *intel_dp,
2072
/* Compressed BPP should be less than the Input DSC bpp */
2073
dsc_max_bpp = min(dsc_max_bpp, pipe_bpp - 1);
2074
2075
- for (i = 0; i < ARRAY_SIZE(valid_dsc_bpp); i++) {
2076
- if (valid_dsc_bpp[i] < dsc_min_bpp)
+ for (i = ARRAY_SIZE(valid_dsc_bpp) - 1; i >= 0; i--) {
+ if (valid_dsc_bpp[i] < dsc_min_bpp ||
2077
+ valid_dsc_bpp[i] > dsc_max_bpp)
2078
continue;
- if (valid_dsc_bpp[i] > dsc_max_bpp)
2079
- break;
2080
2081
ret = dsc_compute_link_config(intel_dp,
2082
pipe_config,
0 commit comments