summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorFangzhi Zuo <Jerry.Zuo@amd.com>2025-03-20 20:58:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-07 22:18:37 +0300
commit146a4429b5674b7520a96aea34233949731c6086 (patch)
treebaf1decf1a2564cc3a3aeb7996b5557911ea9858 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parenta3b7dc4a1ec4e184f48c2f8205d2ec88d31310fe (diff)
downloadlinux-146a4429b5674b7520a96aea34233949731c6086.tar.xz
drm/amd/display: Do Not Consider DSC if Valid Config Not Found
[why] In the mode validation, mst dsc is considered for bw calculation after common dsc config is determined. Currently it considered common dsc config is found if max and min target bpp are non zero which is not accurate. Invalid max and min target bpp values would not get max_kbps and min_kbps calculated, leading to falsefully pass a mode that does not have valid dsc parameters available. [how] Use the return value of decide_dsc_bandwidth_range() to determine whether valid dsc common config is found or not. Prune out modes that do not have valid common dsc config determined. Reviewed-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions