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

This commit is contained in:
Xaver Hugl 2022-05-10 13:35:27 +02:00
parent f02a6fd128
commit d83121dbe4

View file

@ -97,7 +97,7 @@ bool VirtualEglGbmLayer::createGbmSurface()
{ {
static bool modifiersEnvSet = false; static bool modifiersEnvSet = false;
static const bool modifiersEnv = qEnvironmentVariableIntValue("KWIN_DRM_USE_MODIFIERS", &modifiersEnvSet) != 0; 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(); const auto tranches = m_eglBackend->dmabuf()->tranches();
for (const auto &tranche : tranches) { for (const auto &tranche : tranches) {