drm/amd/display: Set surface color space from DRM plane state
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 15 Mar 2019 14:31:50 +0000 (10:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
commit004fefa385b42740a1773381bbf4795ec6b168f5
tree8c64cfbef0a91937fe2208a11b809c8cb8d820e8
parent7ee3769a37d3f9d7352bb0182b0bf3a2beabe523
drm/amd/display: Set surface color space from DRM plane state

[Why]
We need DC's color space to match the color encoding and color space
specified by userspace to correctly render YUV surfaces.

[How]
Convert the DRM color encoding and color range properties to the
appropriate DC colorspace option and update the color space when
performing surface updates.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c