guix_mirror_bot pushed a commit to branch mesa-updates
in repository guix.

commit 0751e48a064bfe61d9bb3faae5adc39ac214e29f
Author: Philipp Berger <[email protected]>
AuthorDate: Sun Jul 13 06:06:45 2025 +0200

    gnu: mesa: Re-enable X11 protocol support for the DRI2 extension.
    
    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'.
    
    Signed-off-by: John Kehayias <[email protected]>
---
 gnu/packages/gl.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/gl.scm b/gnu/packages/gl.scm
index 88bad0fb85..fc1d2a9d11 100644
--- a/gnu/packages/gl.scm
+++ b/gnu/packages/gl.scm
@@ -438,6 +438,9 @@ 
panfrost,r300,r600,svga,softpipe,llvmpipe,tegra,v3d,vc4,virgl,zink"))
          ;; 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

Reply via email to