From: Alberto Garcia Date: Thu, 19 Oct 2023 22:26:39 +0000 (+0100) Subject: Disable the DMABuf renderer by default in bullseye backports X-Git-Tag: archive/raspbian/2.42.1-1_deb11u2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=14930f5d23c5a108bf1d2a02b075da5f1c2aaa8a;p=webkit2gtk.git Disable the DMABuf renderer by default in bullseye backports Bug-Debian: https://bugs.debian.org/1054101 Forwarded: no =================================================================== Gbp-Pq: Name disable-dmabuf.patch --- diff --git a/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp b/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp index 2a8d712790..63d131be1c 100644 --- a/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp +++ b/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp @@ -58,8 +58,8 @@ OptionSet AcceleratedBackingStoreDMABuf::rendererBuffe static OptionSet 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);