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:03:04 -0400 |
| commit | 4523adbf4dca157aea96a6f28b4e7b7ebd4d5eda (patch) | |
| tree | 82a94ff0ca2b5500e67954d616f4389221d6f56f /tools/perf/scripts/python | |
| parent | 86420fe3093161971b4064e05be11ffff1df76aa (diff) | |
| download | linux-4523adbf4dca157aea96a6f28b4e7b7ebd4d5eda.tar.gz linux-4523adbf4dca157aea96a6f28b4e7b7ebd4d5eda.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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
