OSDN Git Service

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:35:15 +0000 (13:35 -0500)
commitc17b7a58e5c3ccd108b440cbdb04ad01b6fd2857
tree155b64b6c396aa3984af55029d406a3d96b5521c
parent9a31c06ff7d45a909162076d9f446f925acce76a
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c