From d83121dbe41a09497f96c03bef54f063a4190ce5 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 10 May 2022 13:35:27 +0200 Subject: [PATCH] backends/drm: also use modifiers by default for virtual outputs --- src/backends/drm/virtual_egl_gbm_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/virtual_egl_gbm_layer.cpp b/src/backends/drm/virtual_egl_gbm_layer.cpp index dfcdd02b40..512e0a2dbb 100644 --- a/src/backends/drm/virtual_egl_gbm_layer.cpp +++ b/src/backends/drm/virtual_egl_gbm_layer.cpp @@ -97,7 +97,7 @@ bool VirtualEglGbmLayer::createGbmSurface() { static bool modifiersEnvSet = false; static const bool modifiersEnv = qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS", &modifiersEnvSet) != 0; - const bool allowModifiers = ((m_eglBackend->gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv)); + const bool allowModifiers = !modifiersEnvSet || modifiersEnv; const auto tranches = m_eglBackend->dmabuf()->tranches(); for (const auto &tranche : tranches) {