backends/drm: handle dumb buffer target correctly

It's independent of the multi gpu import mode

BUG: 482859
This commit is contained in:
Xaver Hugl 2024-03-08 16:49:37 +01:00
parent 9bf7c294a8
commit f3d9e5c90c

View file

@ -288,6 +288,9 @@ bool EglGbmLayerSurface::doesSurfaceFit(Surface *surface, const QSize &size, con
if (!surface || !surface->gbmSwapchain || surface->gbmSwapchain->size() != size) {
return false;
}
if (surface->bufferTarget == BufferTarget::Dumb) {
return formats.contains(surface->importDumbSwapchain->format());
}
switch (surface->importMode) {
case MultiGpuImportMode::None:
case MultiGpuImportMode::Dmabuf: