]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Calculate output_color_space after pixel encoding adjustment
authorJoshua Ashton <joshua@froggi.es>
Tue, 10 Jan 2023 20:12:21 +0000 (20:12 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Jan 2023 04:14:26 +0000 (23:14 -0500)
commit79601b894849cb6f6d6122e6590f1887ac4a66b3
tree18ab5d22e13e73b7611d11056757c1453a6cbfc0
parent4463b1eea28ad733ca5cb53d89371132a57b1db3
drm/amd/display: Calculate output_color_space after pixel encoding adjustment

Code in get_output_color_space depends on knowing the pixel encoding to
determine whether to pick between eg. COLOR_SPACE_SRGB or
COLOR_SPACE_YCBCR709 for transparent RGB -> YCbCr 4:4:4 in the driver.

v2: Fixed patch being accidentally based on a personal feature branch, oops!

Fixes: ea117312ea9f ("drm/amd/display: Reduce HDMI pixel encoding if max clock is exceeded")
Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c