]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Re-add custom degamma support
authorDavid Francis <David.Francis@amd.com>
Mon, 11 Feb 2019 19:15:19 +0000 (14:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:52 +0000 (06:43 -0700)
commit7dfc00de75c4d56aca8e8ffd67c3bf9b9682af20
treef51d54dd3c9d8c374e749e1db8e187c844c54219
parente56c67edecf1ab2d9b024c123e84783f895e60fd
drm/amd/display: Re-add custom degamma support

[ Upstream commit f91813992c343272813e707343b50f8d06383659 ]

[Why]
The dc_gamma_type CUSTOM_GAMMA is used to represent degamma
mappings passed in by drm. This type of gamma must be interpolated
into a transfer function by apply_1d_lut.  The line in
mod_color_calculate_degamma_params that handled this case
was erroneously removed.

[How]
For CUSTOM_GAMMA degamma, calculate the lut as before.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c