]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: enable EASF support for DCN40
authorSamson Tam <Samson.Tam@amd.com>
Wed, 24 Apr 2024 12:37:04 +0000 (08:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2024 20:19:34 +0000 (16:19 -0400)
commit7a1dd866c5ac7d25bd1795e1cd507cabe29958ea
tree7b6cfbe107909324ec36bc8bac4d15a3be84df8e
parent70bb97d95fe149607f8e148087ee7e48cc3e94d6
drm/amd/display: enable EASF support for DCN40

[Why]
Enable adaptive scaler support for DCN401

[How]
- Enable build flag for SPL
- Set prefer_easf flag to true
- Apply light linear scaling policy based on transfer function and pixel
  format.  Choose between linear or non-linear scaling
- Set matrix_mode based on pixel format
- Disable ring estimator
- Add missing EASF register defines, masks, and writes
- Disable EASF if scale ratio or number of taps is unsupported and when
  bypassing the scaler
- Add debug flags and registry keys for debugging SPL and EASF
- Add support for Visual Confirm with EASF

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@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>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_spl_translate.c
drivers/gpu/drm/amd/display/dc/dpp/dcn401/dcn401_dpp.h
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/resource/dcn401/dcn401_resource.h
drivers/gpu/drm/amd/display/dc/spl/dc_spl.c
drivers/gpu/drm/amd/display/dc/spl/dc_spl_types.h