]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: remove dc dependencies from SPL library
authorSamson Tam <samson.tam@amd.com>
Wed, 3 Jul 2024 16:23:02 +0000 (12:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:12 +0000 (17:07 -0400)
commitf82200703434522f1b35d38bdef02486d22b2f25
treea74cbb9c91b4326db2381499d9decc10df2b6095
parenta41d58fb91248557438de4e8298d1d2ed5b39564
drm/amd/display: remove dc dependencies from SPL library

[Why]
Make SPL library dc-independent so it can be reused by other
 components

[How]
Create separate set of fixed31_32 calls in SPL
Make all inputs and outputs to SPL use primitive types
For ratios and inits, return as uint32 from SPL.  So
 add conversion from uint32 back to fixed point in
 SPL-to-dc translate function

Reviewed-by: Relja Vojvodic <relja.vojvodic@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Samson Tam <samson.tam@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
17 files changed:
drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
drivers/gpu/drm/amd/display/dc/spl/Makefile
drivers/gpu/drm/amd/display/dc/spl/dc_spl.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl_isharp_filters.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl_isharp_filters.h
drivers/gpu/drm/amd/display/dc/spl/dc_spl_scl_easf_filters.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl_scl_easf_filters.h
drivers/gpu/drm/amd/display/dc/spl/dc_spl_scl_filters.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl_scl_filters.h
drivers/gpu/drm/amd/display/dc/spl/dc_spl_types.h
drivers/gpu/drm/amd/display/dc/spl/spl_debug.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/spl/spl_fixpt31_32.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/spl/spl_fixpt31_32.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/spl/spl_os_types.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/include/fixed31_32.h