]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use the correct input TF for video formats
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 31 Mar 2020 20:50:12 +0000 (16:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Apr 2020 22:11:47 +0000 (18:11 -0400)
commit08ad2fd137d571d64a8bbe03dce1f59be6b2b9f9
treed1af662485c0466163a77024b927a8511cc773d0
parent919bfe11450783491444790052d91f76e914cc9f
drm/amd/display: Use the correct input TF for video formats

[Why]
Color blending for NV12 formats is incorrect because we're using the
predefined SRGB degamma.

[How]
Calculate the correct input transfer function for degamma from the color
module depending on what the actual surface format is.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c