]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use plane->color_space for dpp if specified
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 14 Mar 2019 17:46:44 +0000 (13:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2019 18:53:28 +0000 (13:53 -0500)
commitc1677e235d2edf6d7beeb0cba3091efaee92e854
tree84c1a9f8f856c811b8a2a5f0837f41ab6298018b
parentf954a410bbeec15a896fd8f9b138478e1108263a
drm/amd/display: Use plane->color_space for dpp if specified

[Why]
The input color space for the plane was previously ignored even if it
was set.

If a limited range YUV format was given to DC then the
wrong color transformation matrix was being used since DC assumed that
it was full range instead.

[How]
Respect the given color_space format for the plane if it isn't
COLOR_SPACE_UNKNOWN. Otherwise, use the implicit default since DM
didn't specify.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c