backends/drm: don't block direct scanout if color profile source isn't set to ICC

If there's a valid ICC profile loaded is irrelevant with a different color profile source
This commit is contained in:
Xaver Hugl 2024-08-02 16:13:00 +02:00
parent 1f2e439b66
commit ebffcd9dc4

View file

@ -92,7 +92,7 @@ bool EglGbmLayer::doAttemptScanout(GraphicsBuffer *buffer, const ColorDescriptio
if (directScanoutDisabled) {
return false;
}
if (m_pipeline->iccProfile()) {
if (m_pipeline->output()->colorProfileSource() == Output::ColorProfileSource::ICC && !m_pipeline->output()->highDynamicRange() && m_pipeline->iccProfile()) {
// TODO make the icc profile output a color pipeline too?
return false;
}