From c1c03dc65daf0ca170a5883218de8a9d089e86ec Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 6 Mar 2019 10:39:52 +0000 Subject: [PATCH] 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). --- lib/mesa/Makefile.bsd-wrapper | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/mesa/Makefile.bsd-wrapper b/lib/mesa/Makefile.bsd-wrapper index 5ffe6900c..8f6fc07ce 100644 --- a/lib/mesa/Makefile.bsd-wrapper +++ b/lib/mesa/Makefile.bsd-wrapper @@ -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 .include @@ -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 GALLIUM_DRIVERS= swrast +WITH_LLVM= --disable-llvm .if ${MACHINE} == i386 || ${MACHINE} == amd64 DRI_DRIVERS=swrast,radeon,r200,i915,i965 -GALLIUM_DRIVERS=swrast,r300,r600 +GALLIUM_DRIVERS=swrast,r300,r600,radeonsi +WITH_LLVM= --enable-llvm .endif .if ${MACHINE} == arm64 || ${MACHINE} == loongson || \ @@ -23,7 +25,7 @@ GALLIUM_DRIVERS=swrast,r300,r600 CONFIGURE_ARGS= --with-dri-drivers=${DRI_DRIVERS} \ --with-gallium-drivers=${GALLIUM_DRIVERS} \ --disable-silent-rules \ - --disable-llvm \ + ${WITH_LLVM} \ --disable-glx-tls \ --disable-regen-sources \ --enable-gles1 --enable-gles2 \