OSDN Git Service

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>
Tue, 17 Jan 2023 21:11:51 +0000 (16:11 -0500)
commit766f179238639bb0fa8b4fd35c25b352e475363a
tree310e022f0697bc139605c9436d8e10a4a9b38d9d
parentdf86a0c20648298bb4517ba34c677e0499e7db4f
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c