]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: take ODM slice count into account when deciding DSC slice
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 12 Apr 2024 19:58:05 +0000 (15:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:54:05 +0000 (09:54 -0400)
commit3d1967ec9b990219c960b6da107231bf101e2255
tree000aa573f44b74aa93c01d82713e31827f723079
parent6aa96aa8ffbed1efab4c6f3b0d6106e6bbadfc68
drm/amd/display: take ODM slice count into account when deciding DSC slice

[why]
DSC slice must be divisible by ODM slice count.

[how]
If DSC slice count is not a multiple of ODM slice count, increase DSC
slice until it is. Otherwise fail to compute DSC configuration.

Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c