Disable the DMABuf renderer by default in bullseye backports
authorAlberto Garcia <berto@igalia.com>
Thu, 19 Oct 2023 22:26:39 +0000 (23:26 +0100)
committerAlberto Garcia <berto@igalia.com>
Thu, 19 Oct 2023 22:26:39 +0000 (23:26 +0100)
Bug-Debian: https://bugs.debian.org/1054101
Forwarded: no

===================================================================

Gbp-Pq: Name disable-dmabuf.patch

Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp

index 2a8d7127909d16f5d2ea9f67fb033a1717161c5b..63d131be1c845b4eeb767638cacc6dbbea0899a3 100644 (file)
@@ -58,8 +58,8 @@ OptionSet<DMABufRendererBufferMode> AcceleratedBackingStoreDMABuf::rendererBuffe
     static OptionSet<DMABufRendererBufferMode> mode;
     static std::once_flag onceFlag;
     std::call_once(onceFlag, [] {
-        const char* disableDMABuf = getenv("WEBKIT_DISABLE_DMABUF_RENDERER");
-        if (disableDMABuf && strcmp(disableDMABuf, "0"))
+        const char* forceDMABuf = getenv("WEBKIT_FORCE_DMABUF_RENDERER");
+        if (!forceDMABuf || !strcmp(forceDMABuf, "0"))
             return;
 
         const char* platformExtensions = eglQueryString(nullptr, EGL_EXTENSIONS);