]> www.infradead.org Git - nvme.git/commit
drm/amd/display: quality improvements for EASF and ISHARP
authorSamson Tam <samson.tam@amd.com>
Thu, 20 Jun 2024 19:42:45 +0000 (15:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:09 +0000 (17:07 -0400)
commit5f30ee493044e9ea3a46167e5597a96f5c302adb
treec16f7dfb8ad8e3b82c2c5460eb13f2b1972cfc41
parent4ccc8fdcca670edd76d8bfd6389f04c448cff6f6
drm/amd/display: quality improvements for EASF and ISHARP

[Why]
Update coefficients and LUT tables for scaler and sharpener
 to improve quality and support different use cases (SDR/HDR)

[How]
Move scaler coefficients to new file dc_spl_scl_easf_filters.c
Remove older coefficients file dc_sp_scl_filters_old.c
Update default taps for EASF support
Update LLS policy for DON'T CARE case
Update cositing offset from 0.5 to 0.25
Add support to adjust sharpness based on level, use case,
 and scaling ratio ( using discrete levels )
Apply sharpness to all RGB surfaces and both NV12 and P010
 video ( in fullscreen only ).  Upscale and 1:1 ratios only
Enable scaler when sharpening 1:1 ratios
Add support for coefficients that are in S1.10 format
 (convert to S1.12 format)

Reviewed-by: Jun Lei <jun.lei@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>
19 files changed:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
drivers/gpu/drm/amd/display/dc/dc_hw_types.h
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
drivers/gpu/drm/amd/display/dc/dc_spl_translate.h
drivers/gpu/drm/amd/display/dc/dm_helpers.h
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp_dscl.c
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.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_filters.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/spl/dc_spl_filters.h [new file with mode: 0644]
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 [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/spl/dc_spl_scl_easf_filters.h [new file with mode: 0644]
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