drm/amd/display: Update SPL Taps Required For Integer Scaling
authorAustin Zheng <Austin.Zheng@amd.com>
Thu, 31 Oct 2024 18:10:39 +0000 (14:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Nov 2024 16:45:30 +0000 (11:45 -0500)
commitbc0429283802546f7d13184f1f9e6a6bab9834a3
tree7f0d7282c5a912d290e86cc11e2999c8947de2a1
parent0d5fd22b63bc8315ff946e7063be3bb031f7dda3
drm/amd/display: Update SPL Taps Required For Integer Scaling

Number of taps is incorrectly being set when integer scaling is enabled.
Taps required when src_rect != dst_rect previously not considered.
Perform the calculations when integer scaling is enabled.
Set taps to 1 if the scaling ratio is 1:1.

Reviewed-by: Samson Tam <samson.tam@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/spl/dc_spl.c