diff options
author | Yao Wang1 <Yao.Wang1@amd.com> | 2022-08-22 18:30:31 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-09-13 14:33:00 -0400 |
commit | 61e4de65b99c616d5e074a9e2a4a1a9f821a964b (patch) | |
tree | f9ea3eee5dbe2cf7a1bb0973e5677b3ad0ca4e80 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 3b304bced035fa4e1144d657b4687238be931806 (diff) | |
download | linux-61e4de65b99c616d5e074a9e2a4a1a9f821a964b.tar.gz linux-61e4de65b99c616d5e074a9e2a4a1a9f821a964b.tar.bz2 linux-61e4de65b99c616d5e074a9e2a4a1a9f821a964b.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions