Commit d83121db authored by Xaver Hugl's avatar Xaver Hugl
Browse files

backends/drm: also use modifiers by default for virtual outputs

parent f02a6fd1
Pipeline #174447 passed with stage
in 11 minutes and 56 seconds
......@@ -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) {
......
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