drm/amd/display: add public taps API in SPL
authorSamson Tam <Samson.Tam@amd.com>
Tue, 5 Nov 2024 15:15:19 +0000 (10:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:39:51 +0000 (09:39 -0500)
commite0179588d6eeb74eb87981c07a405524a1f0a677
treee7e4ab2d24989a7442669182373bdae44cb42f8a
parent89713ce5518eda6b370c7a17edbcab4f97a39f68
drm/amd/display: add public taps API in SPL

[Why]
Add public API to obtain number of taps in SPL.

[How]
Isolate function to calculate recout, ratios and viewport before
calculating taps. Call function in both public taps API call and private
scaling call.

Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@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/spl/dc_spl.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl.h