platforms/drm: work around tigerlake bug
CCBUG: 440361
This commit is contained in:
parent
e94fbcd853
commit
7879450cdf
2 changed files with 0 additions and 5 deletions
|
@ -23,7 +23,6 @@ DrmCrtc::DrmCrtc(DrmGpu *gpu, uint32_t crtcId, int pipeIndex)
|
||||||
PropertyDefinition(QByteArrayLiteral("ACTIVE")),
|
PropertyDefinition(QByteArrayLiteral("ACTIVE")),
|
||||||
PropertyDefinition(QByteArrayLiteral("VRR_ENABLED")),
|
PropertyDefinition(QByteArrayLiteral("VRR_ENABLED")),
|
||||||
PropertyDefinition(QByteArrayLiteral("GAMMA_LUT")),
|
PropertyDefinition(QByteArrayLiteral("GAMMA_LUT")),
|
||||||
PropertyDefinition(QByteArrayLiteral("GAMMA_LUT_SIZE")),
|
|
||||||
}, DRM_MODE_OBJECT_CRTC)
|
}, DRM_MODE_OBJECT_CRTC)
|
||||||
, m_crtc(drmModeGetCrtc(gpu->fd(), crtcId))
|
, m_crtc(drmModeGetCrtc(gpu->fd(), crtcId))
|
||||||
, m_pipeIndex(pipeIndex)
|
, m_pipeIndex(pipeIndex)
|
||||||
|
|
|
@ -34,7 +34,6 @@ public:
|
||||||
Active,
|
Active,
|
||||||
VrrEnabled,
|
VrrEnabled,
|
||||||
Gamma_LUT,
|
Gamma_LUT,
|
||||||
Gamma_LUT_size,
|
|
||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -58,9 +57,6 @@ public:
|
||||||
void flipBuffer();
|
void flipBuffer();
|
||||||
|
|
||||||
int gammaRampSize() const {
|
int gammaRampSize() const {
|
||||||
if (auto prop = getProp(PropertyIndex::Gamma_LUT_size)) {
|
|
||||||
return prop->current();
|
|
||||||
}
|
|
||||||
return m_crtc->gamma_size;
|
return m_crtc->gamma_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue