]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: Do not bypass chroma scaling in 1:1 case
authorNavid Assadian <Navid.Assadian@amd.com>
Wed, 30 Apr 2025 19:38:20 +0000 (15:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Jun 2025 19:35:53 +0000 (15:35 -0400)
commita4d04bc90d2d539cf27f72128a0301a261e1249d
tree96c63429b058a1fdd493f3ab30014ecaacd44760
parented8045a731107e96b1fda80879a85b5de7658941
drm/amd/display: Do not bypass chroma scaling in 1:1 case

[Why]
When doing 2:1 downscaling on a YUV sub-sampled format, the chroma
scaling ratio is 1:1. Since chroma has cositing, it is needed to do
scaling on the chroma plane(s) and not to bypass chroma scaling.

[How]
Do not set the chroma taps to one when the chroma ratio is identity
and the input format is a sub-sampled YUV format.

Reviewed-by: Samson Tam <samson.tam@amd.com>
Signed-off-by: Navid Assadian <Navid.Assadian@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@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/sspl/dc_spl.c