[bug#79007,core-updates] gnu: mesa: Re-enable X11 protocol support for the DRI2 extension.

Message ID c08659a95c87d9e960036355ac69e3d8b38dcdb7.1752379605.git.Philipp.Berger@mail.de
State New
Headers
Series [bug#79007,core-updates] gnu: mesa: Re-enable X11 protocol support for the DRI2 extension. |

Commit Message

Philipp Berger July 13, 2025, 4:06 a.m. UTC
Starting with Mesa 24.3, X11 protocol support for the DRI2 extension is
no longer enabled by default.  The developers are phasing it out in
favor of DRI3, and have moved it into an optional 'legacy-x11' feature.
Re-enable it to retain hardware acceleration on older systems that do
not support DRI3.

* gnu/packages/gl.el (mesa)[arguments]<#:configure-flags>: Add
'-Dlegacy-x11=dri2'.
---
 gnu/packages/gl.scm | 3 +++
 1 file changed, 3 insertions(+)


base-commit: d31a92c6242145724783b692941545384fd71bc4
  

Patch

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index a23426fd42..b5be8346b9 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -428,6 +428,9 @@  (define-public mesa
          ;; Also enable the tests.
          "-Dbuild-tests=true"
 
+         ;; Re-enable X11 protocol support for the DRI2 extension.
+         "-Dlegacy-x11=dri2"
+
          "-Dllvm=enabled")              ; default is x86/x86_64 only
 
        ;; XXX: 'debugoptimized' causes LTO link failures on some drivers.  The