Build Mesa with LLVM support on amd64 and i386 now that libelf and

shared libLLVM are in base.  And now we can finally build the radeonsi
Mesa driver adding accelerated support for radeon parts based on the
Graphics Core Next (GCN) architecture which is everything since
GFX6 / Southern Islands.

This can later be expanded to other architectures which build libLLVM
and have clang as the default compiler (to handle LLVM's c++11 headers).
This commit is contained in:
jsg 2019-03-06 10:39:52 +00:00
parent 8fa20d6f43
commit c1c03dc65d

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.bsd-wrapper,v 1.23 2019/02/19 05:57:17 jsg Exp $ # $OpenBSD: Makefile.bsd-wrapper,v 1.24 2019/03/06 10:39:52 jsg Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include <bsd.xconf.mk> .include <bsd.xconf.mk>
@ -8,10 +8,12 @@ SHARED_LIBS= EGL 1.1 gbm 0.3 glapi 0.2 GL 17.1 GLESv1_CM 1.0 GLESv2 1.2 \
DRI_DRIVERS= swrast DRI_DRIVERS= swrast
GALLIUM_DRIVERS= swrast GALLIUM_DRIVERS= swrast
WITH_LLVM= --disable-llvm
.if ${MACHINE} == i386 || ${MACHINE} == amd64 .if ${MACHINE} == i386 || ${MACHINE} == amd64
DRI_DRIVERS=swrast,radeon,r200,i915,i965 DRI_DRIVERS=swrast,radeon,r200,i915,i965
GALLIUM_DRIVERS=swrast,r300,r600 GALLIUM_DRIVERS=swrast,r300,r600,radeonsi
WITH_LLVM= --enable-llvm
.endif .endif
.if ${MACHINE} == arm64 || ${MACHINE} == loongson || \ .if ${MACHINE} == arm64 || ${MACHINE} == loongson || \
@ -23,7 +25,7 @@ GALLIUM_DRIVERS=swrast,r300,r600
CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \ CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \
--with-gallium-drivers=${GALLIUM_DRIVERS} \ --with-gallium-drivers=${GALLIUM_DRIVERS} \
--disable-silent-rules \ --disable-silent-rules \
--disable-llvm \ ${WITH_LLVM} \
--disable-glx-tls \ --disable-glx-tls \
--disable-regen-sources \ --disable-regen-sources \
--enable-gles1 --enable-gles2 \ --enable-gles1 --enable-gles2 \