Commit 9f95798f authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: ignore modifier env var if modifiers are not supported

Otherwise we might crash


(cherry picked from commit d0c12ac5)
parent 7130ebe9
Pipeline #135072 passed with stage
in 13 minutes and 10 seconds
......@@ -162,7 +162,7 @@ bool EglGbmBackend::resetOutput(Output &output)
QSharedPointer<GbmSurface> gbmSurface;
bool modifiersEnvSet = false;
static bool modifiersEnv = qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS", &modifiersEnvSet) != 0;
static bool allowModifiers = (gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv);
static bool allowModifiers = gpu()->addFB2ModifiersSupported() && ((gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv));
#if HAVE_GBM_BO_GET_FD_FOR_PLANE
if (!allowModifiers) {
#else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment