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
This commit is contained in:
Xaver Hugl 2022-01-14 00:49:50 +01:00
parent e20f09666b
commit 031bb305e3

View file

@ -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";