diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-11-26 19:05:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-11-26 19:05:50 +0000 |
commit | a21f2c9d8849abf82f182afcdcfa6561eb14a4c1 (patch) | |
tree | 644ebe574e5b6696b500275f73bc62b4b9114798 | |
parent | 43972a324d0302a7f39c17f9d6ea8dbcd56d41a4 (diff) |
On i386, compile with -march=i586. The i965 driver requires 64-bit atomic
operations and older CPUs lack the needed instructions. The hardware
supported by that driver will never be used together those older CPUs.
This might mean that even the software rasterizer doesn't work anymore on
those. But they're so slow that you probably wouldn't want to anyway.
ok jsg@
-rw-r--r-- | lib/mesa/Makefile.bsd-wrapper | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mesa/Makefile.bsd-wrapper b/lib/mesa/Makefile.bsd-wrapper index 96b8b6d85..437227cba 100644 --- a/lib/mesa/Makefile.bsd-wrapper +++ b/lib/mesa/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.1 2015/11/22 03:11:30 jsg Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.2 2015/11/26 19:05:49 kettenis Exp $ .include <bsd.own.mk> @@ -32,6 +32,11 @@ CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \ --with-dri-driverdir=${X11BASE}/lib/modules/dri \ --with-dri-searchpath=${X11BASE}/lib/modules/dri +# The i965 driver uses the cmpxchg8b instruction +.if ${MACHINE} == i386 +CONFIGURE_ARGS+= USER_CFLAGS="-march=i586" USER_CXXFLAGS="-march=i586" +.endif + depend: .if !exists(${.OBJDIR}/src/util/format_srgb.c) lndir -s -e obj -e obj.${MACHINE_ARCH} -e Makefile.bsd-wrapper ${.CURDIR} |