Re: Missing 'spirv' symbols with r300_dri.so in latest snapshots

Jonathan Gray <[email protected]> Sun, 16 Jun 2024 13:55:56 +1000
Newsgroups gmane.os.openbsd.ppc
Message-ID <[email protected]>
On Sun, Jun 16, 2024 at 01:09:28AM +0200, Donovan Watteau wrote:
> Hi,
> 
> I'm seeing this r300 issue on a PowerBook G4, after upgrading
> from 7.5 to the June 2nd snapshot, and then the June 15th snapshot,
> with sysupgrade.
> 
> I just start X with xenodm, and run glxinfo from an xterm:
> 
> glxinfo:/usr/X11R6/lib/modules/dri/r300_dri.so: undefined symbol 'spirv_to_nir'
> glxinfo:/usr/X11R6/lib/modules/dri/r300_dri.so: undefined symbol 'spirv_verify_gl_specialization_constants'
> MESA-LOADER: failed to open r300: Cannot load specified object (search paths /usr/X11R6/lib/modules/dri, suffix _dri)
> failed to load driver: r300
> glxinfo:/usr/X11R6/lib/modules/dri/swrast_dri.so: undefined symbol 'spirv_to_nir'
> glxinfo:/usr/X11R6/lib/modules/dri/swrast_dri.so: undefined symbol 'spirv_verify_gl_specialization_constants'

libmesa now requires libvtn, try this:

Index: lib/mesa/mk/libOSMesa/Makefile
===================================================================
RCS file: /cvs/xenocara/lib/mesa/mk/libOSMesa/Makefile,v
diff -u -p -r1.8 Makefile
--- lib/mesa/mk/libOSMesa/Makefile	3 Mar 2023 06:32:18 -0000	1.8
+++ lib/mesa/mk/libOSMesa/Makefile	16 Jun 2024 03:48:50 -0000
@@ -34,7 +34,8 @@ SLIBS=	libmesa \
 	libcompiler \
 	libgallium \
 	libws_null \
-	libsoftpipe
+	libsoftpipe \
+	libvtn
 
 .if ${WITH_SSE41} == "yes"
 SLIBS+=	libmesa_sse41
Index: lib/mesa/mk/libgallium_dri/Makefile
===================================================================
RCS file: /cvs/xenocara/lib/mesa/mk/libgallium_dri/Makefile,v
diff -u -p -r1.10 Makefile
--- lib/mesa/mk/libgallium_dri/Makefile	3 Apr 2024 22:10:09 -0000	1.10
+++ lib/mesa/mk/libgallium_dri/Makefile	16 Jun 2024 03:46:05 -0000
@@ -92,11 +92,8 @@ SLIBS=	libdri \
 	libwsw \
 	libswdri \
 	libswkmsdri \
-	libsoftpipe
-
-.if ${WITH_AMD_VK} == "yes" || ${WITH_INTEL_VK} == "yes"
-SLIBS+=	libvtn
-.endif
+	libsoftpipe \
+	libvtn
 
 .if ${WITH_SSE41} == "yes"
 SLIBS+=	libmesa_sse41