backends/drm: signal dmabuf feedback if an unsupported modifier is used

Otherwise the per-surface feedback never gets updated, and direct scanout fails
This commit is contained in:
Xaver Hugl 2024-04-03 15:28:56 +02:00
parent cbab4b46c1
commit 38e2bf34cf

View file

@ -119,6 +119,7 @@ bool EglGbmLayer::scanout(SurfaceItem *surfaceItem)
return false;
}
if (!formats[dmabufAttributes->format].contains(dmabufAttributes->modifier)) {
m_dmabufFeedback.scanoutFailed(surface, formats);
return false;
}
m_scanoutTransform = neededTransform;