diff options
author | Samson Tam <Samson.Tam@amd.com> | 2024-08-17 19:24:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-08-27 17:55:27 -0400 |
commit | 469a486541b6eb0d695a5558e68851fef35c16f7 (patch) | |
tree | 92f7d61f8521e1ef0d8a4f4567a9ff5ffc20a35c | |
parent | 1b0ce903fe747d72e9eab86a06c79fb2c7ba2bab (diff) |
drm/amd/display: add sharpness support for windowed YUV420 video
[Why]
Previous only applied sharpness for fullscreen YUV420 video.
[How]
Remove fullscrene restriction and apply sharpness for windowed
YUV420 video as well.
Reviewed-by: Jun Lei <jun.lei@amd.com>
Signed-off-by: Samson Tam <Samson.Tam@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 059d144bab859..b6d1cfc494fca 100644 --- a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c +++ b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c @@ -813,14 +813,6 @@ static bool enable_easf(struct spl_in *spl_in, struct spl_scratch *spl_scratch) return skip_easf; } -/* Check if video is in fullscreen mode */ -static bool spl_is_video_fullscreen(struct spl_in *spl_in) -{ - if (spl_is_yuv420(spl_in->basic_in.format) && spl_in->is_fullscreen) - return true; - return false; -} - static bool spl_get_isharp_en(struct spl_in *spl_in, struct spl_scratch *spl_scratch) { @@ -828,7 +820,6 @@ static bool spl_get_isharp_en(struct spl_in *spl_in, int vratio = 0; int hratio = 0; struct spl_taps taps = spl_scratch->scl_data.taps; - bool fullscreen = spl_is_video_fullscreen(spl_in); /* Return if adaptive sharpness is disabled */ if (spl_in->adaptive_sharpness.enable == false) @@ -845,10 +836,8 @@ static bool spl_get_isharp_en(struct spl_in *spl_in, /* * Apply sharpness to all RGB surfaces and to - * NV12/P010 surfaces if in fullscreen + * NV12/P010 surfaces */ - if (spl_is_yuv420(spl_in->basic_in.format) && !fullscreen) - return enable_isharp; /* * Apply sharpness if supports horizontal taps 4,6 AND |