From 68a54a67b88025c1c0679ffe1658222f61b0cc81 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sat, 16 Apr 2022 03:47:33 +0200 Subject: [PATCH] backends/drm: enable format modifiers by default Format modifiers enable the graphics hardware to be much more efficient, especially when it comes to multi-gpu transfers. With the issues regarding bandwidth limits now solved, enable them by default to make all supported systems benefit from them. CCBUG: 452397 CCBUG: 452219 --- src/backends/drm/egl_gbm_layer_surface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/egl_gbm_layer_surface.cpp b/src/backends/drm/egl_gbm_layer_surface.cpp index ff339b74ca..c20978713c 100644 --- a/src/backends/drm/egl_gbm_layer_surface.cpp +++ b/src/backends/drm/egl_gbm_layer_surface.cpp @@ -159,7 +159,7 @@ bool EglGbmLayerSurface::createGbmSurface(const QSize &size, uint32_t format, co static bool modifiersEnvSet = false; static const bool modifiersEnv = qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS", &modifiersEnvSet) != 0; const bool allowModifiers = m_eglBackend->gpu()->addFB2ModifiersSupported() && m_gpu->addFB2ModifiersSupported() - && ((m_eglBackend->gpu()->isNVidia() && !modifiersEnvSet) || (modifiersEnvSet && modifiersEnv)); + && (!modifiersEnvSet || (modifiersEnvSet && modifiersEnv)); const auto config = m_eglBackend->config(format);