backends/drm: handle dumb buffer target correctly
It's independent of the multi gpu import mode BUG: 482859
This commit is contained in:
parent
9bf7c294a8
commit
f3d9e5c90c
1 changed files with 3 additions and 0 deletions
|
@ -288,6 +288,9 @@ bool EglGbmLayerSurface::doesSurfaceFit(Surface *surface, const QSize &size, con
|
||||||
if (!surface || !surface->gbmSwapchain || surface->gbmSwapchain->size() != size) {
|
if (!surface || !surface->gbmSwapchain || surface->gbmSwapchain->size() != size) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (surface->bufferTarget == BufferTarget::Dumb) {
|
||||||
|
return formats.contains(surface->importDumbSwapchain->format());
|
||||||
|
}
|
||||||
switch (surface->importMode) {
|
switch (surface->importMode) {
|
||||||
case MultiGpuImportMode::None:
|
case MultiGpuImportMode::None:
|
||||||
case MultiGpuImportMode::Dmabuf:
|
case MultiGpuImportMode::Dmabuf:
|
||||||
|
|
Loading…
Reference in a new issue