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

Generically disabling it with color management is a bit overkill
wilder/Plasma/6.2
Xaver Hugl 2 years ago
parent b441e1afe9
commit 75304afe0f
  1. 4
      src/backends/drm/drm_egl_layer.cpp

@ -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;
}

Loading…
Cancel
Save