1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules
Yao Wang1 61e4de65b9 drm/amd/display: Limit user regamma to a valid value
[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>
2022-09-13 14:33:00 -04:00
..
color drm/amd/display: Limit user regamma to a valid value 2022-09-13 14:33:00 -04:00
freesync drm/amd/display: Fix HDMI VSIF V3 incorrect issue 2022-08-10 15:12:13 -04:00
hdcp drm/amd/display: update topology_update_input_v3 struct 2022-06-14 21:38:40 -04:00
inc drm/amd/display: Add vrr_active_variable to dc_stream_update 2022-06-14 21:38:41 -04:00
info_packet drm/amd/display: revise Start/End SDP data 2022-06-06 14:40:57 -04:00
power drm/amd/display: Disable PSRSU when DSC enabled on the specific sink 2022-07-12 16:50:29 -04:00
vmid drm/amd: Fix spelling typo in comments 2022-06-03 16:43:36 -04:00