pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/mesa



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Nov 28 09:09:03 UTC 2026

Modified Files:
        pkgsrc/graphics/mesa: Makefile distinfo
Added Files:
        pkgsrc/graphics/mesa/patches: patch-src_x11_x11__display.c

Log Message:
mesa: fix black windows in vnc servers on NetBSD

The XSHM detection logic didn't match what the server did, so it
believed to have SHM support when it didn't.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 pkgsrc/graphics/mesa/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/graphics/mesa/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/mesa/patches/patch-src_x11_x11__display.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/mesa/Makefile
diff -u pkgsrc/graphics/mesa/Makefile:1.6 pkgsrc/graphics/mesa/Makefile:1.7
--- pkgsrc/graphics/mesa/Makefile:1.6   Fri Nov 27 20:18:09 2026
+++ pkgsrc/graphics/mesa/Makefile       Sat Nov 28 09:09:02 2026
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.6 2026/11/27 20:18:09 wiz Exp $
+# $NetBSD: Makefile,v 1.7 2026/11/28 09:09:02 wiz Exp $
 #
 # needs recursive bumps for _every_ update due to
 # lib/libgallium-${PKGVERSION}.so
 
 DISTNAME=      mesa-26.2.8
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    graphics
 MASTER_SITES=  https://mesa.freedesktop.org/archive/
 MASTER_SITES+= https://mesa3d.org/archive/

Index: pkgsrc/graphics/mesa/distinfo
diff -u pkgsrc/graphics/mesa/distinfo:1.4 pkgsrc/graphics/mesa/distinfo:1.5
--- pkgsrc/graphics/mesa/distinfo:1.4   Fri Nov 27 08:28:12 2026
+++ pkgsrc/graphics/mesa/distinfo       Sat Nov 28 09:09:02 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2026/11/27 08:28:12 wiz Exp $
+$NetBSD: distinfo,v 1.5 2026/11/28 09:09:02 wiz Exp $
 
 BLAKE2s (mesa-26.2.8.tar.xz) = 871dbcf659f4db65b092714c840b1a0afd81541ceaf00e073ad35c91d77c4250
 SHA512 (mesa-26.2.8.tar.xz) = 5161492b96fcc2085a50d8a62db4e0ff5c2aeb9d50fdf9ffb4950052078dbea3d1e1bd0e17dd692dc93ec9645e18d0949fec52b2d5c6a0d1fe4ed39f813b409b
@@ -16,3 +16,4 @@ SHA1 (patch-src_util_futex.c) = 4ad0d60e
 SHA1 (patch-src_util_futex.h) = a4a2827406102d855bb8afadecb7ce5a42fd5ecd
 SHA1 (patch-src_util_os__file.c) = c80d88255a8f800d1e36fc199f3869ecdb61d203
 SHA1 (patch-src_vulkan_wsi_wsi__common__wayland.c) = 1b8017f21855e01183a2343af64cf7fc8ca13ebe
+SHA1 (patch-src_x11_x11__display.c) = 79f70b5e8096c5e76871eb2d42ad3ad05ddff992

Added files:

Index: pkgsrc/graphics/mesa/patches/patch-src_x11_x11__display.c
diff -u /dev/null pkgsrc/graphics/mesa/patches/patch-src_x11_x11__display.c:1.1
--- /dev/null   Sat Nov 28 09:09:03 2026
+++ pkgsrc/graphics/mesa/patches/patch-src_x11_x11__display.c   Sat Nov 28 09:09:02 2026
@@ -0,0 +1,28 @@
+$NetBSD: patch-src_x11_x11__display.c,v 1.1 2026/11/28 09:09:02 wiz Exp $
+
+On NetBSD, shmat(2) fails with EINVAL when attaching a segment that
+has already been marked for deletion with shmctl(2) IPC_RMID.
+Mesa's software rasterizer marks each SHM display target for deletion
+immediately after creating it, but the XSHM probe in
+x11_xcb_display_supports_xshm() omits that IPC_RMID, so it succeeds
+even though the real present path cannot attach the segment.  Then
+the XSHM based present path is selected, every attach fails in the
+X server, frames are never presented, and windows stay black.
+
+Mirror the real usage by marking the test segment for deletion before
+the X server attaches it.  The attach test then fails and Mesa
+falls back to the plain XPutImage based present path.
+
+https://gitlab.freedesktop.org/mesa/mesa/-/work_items/17045
+
+--- src/x11/x11_display.c.orig 2026-11-28 05:43:11.280001015 +0000
++++ src/x11/x11_display.c
+@@ -107,6 +107,8 @@
+       goto check_xshm_cleanup;
+    }
+ 
++   shmctl(shmid, IPC_RMID, NULL);
++
+    shm_seg = xcb_generate_id(con);
+    error = xcb_request_check(con,
+                              xcb_shm_attach_checked(con,



Home | Main Index | Thread Index | Old Index