From 7879450cdf0a8a7326f22611c692920095d93a8d Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 4 Aug 2021 19:35:50 +0200 Subject: [PATCH] platforms/drm: work around tigerlake bug CCBUG: 440361 --- src/plugins/platforms/drm/drm_object_crtc.cpp | 1 - src/plugins/platforms/drm/drm_object_crtc.h | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/plugins/platforms/drm/drm_object_crtc.cpp b/src/plugins/platforms/drm/drm_object_crtc.cpp index f10756a343..32ffe967d2 100644 --- a/src/plugins/platforms/drm/drm_object_crtc.cpp +++ b/src/plugins/platforms/drm/drm_object_crtc.cpp @@ -23,7 +23,6 @@ DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtcId, int pipeIndex) PropertyDefinition(QByteArrayLiteral("ACTIVE")), PropertyDefinition(QByteArrayLiteral("VRR_ENABLED")), PropertyDefinition(QByteArrayLiteral("GAMMA_LUT")), - PropertyDefinition(QByteArrayLiteral("GAMMA_LUT_SIZE")), }, DRM_MODE_OBJECT_CRTC) , m_crtc(drmModeGetCrtc(gpu->fd(), crtcId)) , m_pipeIndex(pipeIndex) diff --git a/src/plugins/platforms/drm/drm_object_crtc.h b/src/plugins/platforms/drm/drm_object_crtc.h index ed1a45d9c5..f9d961c49e 100644 --- a/src/plugins/platforms/drm/drm_object_crtc.h +++ b/src/plugins/platforms/drm/drm_object_crtc.h @@ -34,7 +34,6 @@ public: Active, VrrEnabled, Gamma_LUT, - Gamma_LUT_size, Count }; @@ -58,9 +57,6 @@ public: void flipBuffer(); int gammaRampSize() const { - if (auto prop = getProp(PropertyIndex::Gamma_LUT_size)) { - return prop->current(); - } return m_crtc->gamma_size; }