]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite62ea05bf90fa120465d12238b9a85a173b3a5be
tree8c64cfbef0a91937fe2208a11b809c8cb8d820e8
parent80d92010c3de14350e943d02b6c325f4b26647ea
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