mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
drm/amd/display: Add fullscreen only sharpening policy
[WHAT & HOW] Disable sharpening if not in fullscreen if this policy is selected Reviewed-by: Samson Tam <samson.tam@amd.com> Signed-off-by: Relja Vojvodic <Relja.Vojvodic@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cf4cebcec6
commit
e79563bf5f
@ -853,6 +853,9 @@ static bool spl_get_isharp_en(struct spl_in *spl_in,
|
|||||||
else if ((spl_is_yuv420(spl_in->basic_in.format) && !fullscreen) &&
|
else if ((spl_is_yuv420(spl_in->basic_in.format) && !fullscreen) &&
|
||||||
(spl_in->debug.sharpen_policy == SHARPEN_RGB_FULLSCREEN_YUV))
|
(spl_in->debug.sharpen_policy == SHARPEN_RGB_FULLSCREEN_YUV))
|
||||||
return enable_isharp;
|
return enable_isharp;
|
||||||
|
else if (!spl_in->is_fullscreen &&
|
||||||
|
spl_in->debug.sharpen_policy == SHARPEN_FULLSCREEN_ALL)
|
||||||
|
return enable_isharp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Apply sharpness if supports horizontal taps 4,6 AND
|
* Apply sharpness if supports horizontal taps 4,6 AND
|
||||||
|
@ -490,7 +490,8 @@ enum linear_light_scaling { // convert it in translation logic
|
|||||||
enum sharpen_policy {
|
enum sharpen_policy {
|
||||||
SHARPEN_ALWAYS = 0,
|
SHARPEN_ALWAYS = 0,
|
||||||
SHARPEN_YUV = 1,
|
SHARPEN_YUV = 1,
|
||||||
SHARPEN_RGB_FULLSCREEN_YUV = 2
|
SHARPEN_RGB_FULLSCREEN_YUV = 2,
|
||||||
|
SHARPEN_FULLSCREEN_ALL = 3
|
||||||
};
|
};
|
||||||
enum scale_to_sharpness_policy {
|
enum scale_to_sharpness_policy {
|
||||||
NO_SCALE_TO_SHARPNESS_ADJ = 0,
|
NO_SCALE_TO_SHARPNESS_ADJ = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user