]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: Correct algorithm for reversed gamma
authorCalvin Hou <Calvin.Hou@amd.com>
Tue, 2 Mar 2021 15:48:26 +0000 (10:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Mar 2021 04:01:58 +0000 (00:01 -0400)
commit34fa493a565cc6fcee6919787c11e264f55603c6
tree00705080dc1b79ece25f5bfd876875bc2b3a6a32
parent73076790e25717b7d452c2eab0bfb118826e5b61
drm/amd/display: Correct algorithm for reversed gamma

[Why]
DCN30 needs to correctly program reversed gamma curve, which DCN20
already has.
Also needs to fix a bug that 252-255 values are clipped.

[How]
Apply two fixes into DCN30.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1513
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Calvin Hou <Calvin.Hou@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Solomon Chiu <solomon.chiu@amd.com>
Acked-by: Vladimir Stempen <Vladimir.Stempen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_cm_common.c