Module Name:    src
Committed By:   kalvisd
Date:           Mon Sep 30 02:55:44 UTC 2024

Modified Files:
        src/external/mit/xorg/lib/gallium: Makefile

Log Message:
gallium: XXX: Sprinkle -O0 hacks for GCC/vax 12.4

XXX
Mesa codes use binary <--> float/double conversion, assuming IEE754.
Even if build passes, these will not work on vax...

    OK rin@ (from rin@)


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/external/mit/xorg/lib/gallium/Makefile

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/gallium/Makefile
diff -u src/external/mit/xorg/lib/gallium/Makefile:1.56 src/external/mit/xorg/lib/gallium/Makefile:1.57
--- src/external/mit/xorg/lib/gallium/Makefile:1.56	Sat Aug 17 11:34:46 2024
+++ src/external/mit/xorg/lib/gallium/Makefile	Mon Sep 30 02:55:44 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.56 2024/08/17 11:34:46 rin Exp $
+# $NetBSD: Makefile,v 1.57 2024/09/30 02:55:44 kalvisd Exp $
 
 # Link the gallium mega driver.
 
@@ -1441,6 +1441,11 @@ COPTS+=	${${ACTIVE_CC} == "clang":? -Wa,
 
 COPTS.u_atomic.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-builtin-declaration-mismatch :}
 
+.if ${MACHINE} == "vax"
+COPTS.sp_quad_depth_test.c+=	-O0
+COPTS.u_format_table.c+=	-O0
+.endif
+
 .if ${MACHINE_CPU} == "m68k" && ${HAVE_GCC:U0} == 12
 COPTS.vl_bicubic_filter.c+=	-O1
 .endif

Reply via email to