drm/amd/display: don't enable DRM CRTC degamma property for DCE
authorMelissa Wen <mwen@igalia.com>
Thu, 3 Nov 2022 18:45:00 +0000 (17:45 -0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:23:48 +0000 (13:23 -0500)
commit0e444a4de6b38c4593a07e4cfb5bf54c40cc79b6
treeb1e49d924ab04c25b2e3b78c3618b591b496d38c
parentf8d7edb0cda6ea1cba89d6f8aac74613e9cdc075
drm/amd/display: don't enable DRM CRTC degamma property for DCE

DM maps DRM CRTC degamma to DPP (pre-blending) degamma block, but DCE doesn't
support programmable degamma curve anywhere. Currently, a custom degamma is
accepted by DM but just ignored by DCE driver and degamma correction isn't
actually applied. There is no way to map custom degamma in DCE, therefore, DRM
CRTC degamma property shouldn't be enabled for DCE drivers.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c