drm/amd/display: reject atomic commit if setting both plane and CRTC degamma
authorMelissa Wen <mwen@igalia.com>
Thu, 16 Nov 2023 19:58:00 +0000 (18:58 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 21:08:01 +0000 (16:08 -0500)
commitef113a3b1964b40dd87287806865b947d70f7df5
treec39ac0492eb5ea2960d080d16c696f8c369f53b0
parent980f8710075acaeb226a94cde6dda8ffad30123c
drm/amd/display: reject atomic commit if setting both plane and CRTC degamma

DC only has pre-blending degamma caps (plane/DPP) that is currently in
use for CRTC/post-blending degamma, so that we don't have HW caps to
perform plane and CRTC degamma at the same time. Reject atomic updates
when serspace sets both plane and CRTC degamma properties.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c