Commit 68a54a67 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

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
parent 916f1f4e
Pipeline #168692 passed with stage
in 13 minutes and 44 seconds
......@@ -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);
......
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