OSDN Git Service

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)
commit2059fc5e8c7f93442d18f9bcc82592fb089199e2
treed1af662485c0466163a77024b927a8511cc773d0
parentd2bacc38f6caa96e6d67d2e3e2bd0aee36de6954
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