diff options
| author | Fangzhi Zuo <jerry.zuo@amd.com> | 2026-08-26 17:47:41 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-10 12:54:31 -0400 |
| commit | 5d7e0cc4afda0cb25c0829dc7c1bb4bedd7886a5 (patch) | |
| tree | b182f80cec877271d79476b94ccb3973beb0dd6b /scripts/Makefile.thinlto | |
| parent | 3001d2073d6542a9e51fa5bca3a39a078094d3c6 (diff) | |
| download | linux-5d7e0cc4afda0cb25c0829dc7c1bb4bedd7886a5.tar.gz linux-5d7e0cc4afda0cb25c0829dc7c1bb4bedd7886a5.zip | |
drm/amd/display: Fix HF-VSDB DSC bpc detection to be cumulative
[Why & How]
The HDMI Forum VSDB reports the maximum DSC color depth a sink supports.
This maximum is cumulative: a sink that reports 12 bpc also supports 10
and 8 bpc.
The previous code used exact "== 10" and "== 12" comparisons chained with
else-if, so a 12 bpc sink only set frl_dsc_12bpc and never set
frl_dsc_10bpc, incorrectly narrowing the DSC bpc range usable with that
sink.
Use ">= 10" and a separate ">= 12" check so a sink advertising a higher
maximum also enables the lower DSC bit depths it supports.
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Fangzhi Zuo <jerry.zuo@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4523adbf4dca157aea96a6f28b4e7b7ebd4d5eda)
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
