Disable the shader cache in Mesa on powerpc. Its implementation uses gcc
atomic builtins on a 64 bit integer which is not supported on 32 bit powerpc. Makes 3D work again on a PowerBook G4 with an ATI RV350 video card. tweak and ok jsg@
This commit is contained in:
parent
97409b6e84
commit
cd197cfa4b
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile.bsd-wrapper,v 1.7 2016/12/11 08:53:19 jsg Exp $
|
||||
# $OpenBSD: Makefile.bsd-wrapper,v 1.8 2017/01/21 11:23:09 stsp Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
@ -38,6 +38,12 @@ CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \
|
||||
CONFIGURE_ARGS+= USER_CFLAGS="-march=i586" USER_CXXFLAGS="-march=i586"
|
||||
.endif
|
||||
|
||||
# powerpc lacks the __sync_add_and_fetch8 gcc atomic builtin
|
||||
# which is used by the shader cache implementation
|
||||
.if ${MACHINE_ARCH} == powerpc
|
||||
CONFIGURE_ARGS+= --disable-shader-cache
|
||||
.endif
|
||||
|
||||
.if ${MACHINE} == alpha
|
||||
# -O2 causes gcc ICE on main/format_pack.c and program/prog_execute.c
|
||||
O1= -fdefer-pop -fguess-branch-probability -fcprop-registers \
|
||||
|
Loading…
Reference in New Issue
Block a user