Module Name:    src
Committed By:   mrg
Date:           Wed Jul  3 02:40:50 UTC 2024

Modified Files:
        src/external/mit/xorg/lib: driver.mk

Log Message:
fix building armv6hf gallium.

as well as "-mfpu=neon", also pass "-march=armv7-a", which is necessary
to enable the NEON intrinsics.  while this won't be executed on armv6hf,
the code knows and only uses NEON if you have v7hf hardware.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/mit/xorg/lib/driver.mk

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

Modified files:

Index: src/external/mit/xorg/lib/driver.mk
diff -u src/external/mit/xorg/lib/driver.mk:1.7 src/external/mit/xorg/lib/driver.mk:1.8
--- src/external/mit/xorg/lib/driver.mk:1.7	Wed Jun  5 15:12:03 2024
+++ src/external/mit/xorg/lib/driver.mk	Wed Jul  3 02:40:50 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: driver.mk,v 1.7 2024/06/05 15:12:03 riastradh Exp $
+#	$NetBSD: driver.mk,v 1.8 2024/07/03 02:40:50 mrg Exp $
 
 # stuff both dri and gallium drivers need.
 
@@ -83,7 +83,7 @@ SRCS.format= \
 	u_format_table.c
 
 CPUFLAGS.u_format_unpack_neon.c+=	\
-	${${MACHINE_CPU} == "arm" && ${ACTIVE_CC} == "clang":?-mfpu=neon:}
+	${${MACHINE_CPU} == "arm" && ${ACTIVE_CC} == "clang":?-mfpu=neon -march=armv7-a:}
 
 .for _f in ${SRCS.format}
 CPPFLAGS.${_f} +=	-I${X11SRCDIR.Mesa}/src/util/format

Reply via email to