linux/drivers/gpu/drm/amd/display/modules
Yao Wang1 a541c01118 drm/amd/display: Limit user regamma to a valid value
[ Upstream commit 3601d620f2 ]

[Why]
For HDR mode, we get total 512 tf_point and after switching to SDR mode
we actually get 400 tf_point and the rest of points(401~512) still use
dirty value from HDR mode. We should limit the rest of the points to max
value.

[How]
Limit the value when coordinates_x.x > 1, just like what we do in
translate_from_linear_space for other re-gamma build paths.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Yao Wang1 <Yao.Wang1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2022-09-28 11:11:55 +02:00
..
color drm/amd/display: Limit user regamma to a valid value 2022-09-28 11:11:55 +02:00
freesync drm/amd/display: Fix HDMI VSIF V3 incorrect issue 2022-09-05 10:30:10 +02:00
hdcp drm/amd/display: Fix deadlock when falling back to v2 from v3 2021-10-27 22:04:50 -04:00
inc drm/amd/display: add authentication_complete in hdcp output 2021-08-09 15:43:33 -04:00
info_packet drm/amd/display: Update VTEM Infopacket definition 2022-04-20 09:34:14 +02:00
power drm/amd/display: tune backlight ramping profiles 2021-06-15 17:25:40 -04:00
vmid drm/amd/display: correct rn NUM_VMID 2020-05-21 12:48:43 -04:00