backends/drm: only disallow direct scanout with mismatching color descriptions

Generically disabling it with color management is a bit overkill
This commit is contained in:
Xaver Hugl 2023-11-13 23:48:45 +01:00
parent b441e1afe9
commit 75304afe0f

View file

@ -104,8 +104,8 @@ bool EglGbmLayer::scanout(SurfaceItem *surfaceItem)
if (directScanoutDisabled) {
return false;
}
// TODO use GAMMA_LUT, CTM and DEGAMMA_LUT to allow direct scanout with HDR
if (m_pipeline->output()->needsColormanagement()) {
if (surfaceItem->colorDescription() != m_pipeline->colorDescription() || m_pipeline->output()->channelFactors() != QVector3D(1, 1, 1) || m_pipeline->iccProfile()) {
// TODO use GAMMA_LUT, CTM and DEGAMMA_LUT to allow direct scanout with HDR
return false;
}