egldmabuf: if modifiers are not supported, send DRM_FORMAT_MOD_INVALID

An empty modifier list will get ignored and does not mean implicit
modifiers are allowed

CCBUG: 448284
master
Xaver Hugl 3 years ago
parent e20f09666b
commit 031bb305e3

@ -460,7 +460,7 @@ void EglDmabuf::setSupportedFormatsAndModifiers()
}
}
}
supportedFormats.insert(format, QSet<uint64_t>());
supportedFormats.insert(format, {DRM_FORMAT_MOD_INVALID});
}
qCDebug(KWIN_OPENGL) << "EGL driver advertises" << supportedFormats.count() << "supported dmabuf formats" << (eglQueryDmaBufModifiersEXT != nullptr ? "with" : "without") << "modifiers";

Loading…
Cancel
Save