]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: DGAM enabled for HDR
authorKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Thu, 17 Jan 2019 22:56:51 +0000 (17:56 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Feb 2019 02:16:23 +0000 (21:16 -0500)
commit2bc0d8bbe1b1b05020f6c9b71c8e605d30c3c212
treeb1e2637f4754d95680f5c2c87592d6c115378b34
parent50db77064174a523d9363c61480d6fd16bd1b466
drm/amd/display: DGAM enabled for HDR

[Why]
On HW that doesn't have input LUT, we may combine degamma with OS ramp
Problem here is that it assumes DGAM is inverse of PQ or SRGB. It doesn't
handle linear case, it would default to sRGB and always enable DGAM..

[How] Add handling for linear case. Also check for null ramp and instead of
blowing up, assume it's identity.

Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/color/color_gamma.c