platformsupport/scenes/opengl: fix simpledrm

With simpledrm, only linear modifiers are supported, but with llvmpipe, only
implicit modifiers are supported. As it's still possible to allocate linear
buffers without modififer support by using GBM_BO_USE_LINEAR, this commit fixes
that problem by adding linear modififers to the supported list.
This commit is contained in:
Xaver Hugl 2023-07-17 09:34:04 +02:00
parent 5eec4cdb52
commit 4cb665dd08

View file

@ -289,7 +289,7 @@ QHash<uint32_t, QList<uint64_t>> EglDisplay::queryImportFormats(Filter filter) c
}
}
if (filter != Filter::ExternalOnly) {
ret.insert(format, {DRM_FORMAT_MOD_INVALID});
ret.insert(format, {DRM_FORMAT_MOD_INVALID, DRM_FORMAT_MOD_LINEAR});
}
}
return ret;