summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorbouyer <bouyer>2015-09-13 12:32:14 +0000
committerbouyer <bouyer>2015-09-13 12:32:14 +0000
commit2c201aa53fdbf24f119f3f8bb515125bc56ca3a1 (patch)
treee4b077e88894f20cf9a05f7e6e595505bb03bf72 /graphics/MesaLib
parent9a97adf6d8b2b2bf89674775808ac5885ceb71a9 (diff)
downloadpkgsrc-2c201aa53fdbf24f119f3f8bb515125bc56ca3a1.tar.gz
Allow building Mesalib with option llvm on arm.
This requires disabling nouveau and radeon drivers. The performance boost is appreciable, glxgears is twice as fast on a cubieboard 2: cubiem:/>/usr/X11R7/bin/glxgears 76 frames in 5.1 seconds = 15.022 FPS 75 frames in 5.0 seconds = 14.889 FPS 75 frames in 5.0 seconds = 14.979 FPS 69 frames in 5.1 seconds = 13.653 FPS 80 frames in 5.1 seconds = 15.831 FPS 78 frames in 5.0 seconds = 15.529 FPS cubiem:/>/usr/pkg/bin/glxgears 121 frames in 5.0 seconds = 24.076 FPS 184 frames in 5.0 seconds = 36.595 FPS 182 frames in 5.0 seconds = 36.072 FPS 175 frames in 5.0 seconds = 34.718 FPS 171 frames in 5.0 seconds = 34.053 FPS 169 frames in 5.0 seconds = 33.734 FPS on the beaglebone the boost is nearly 2x too: beagle:~> /usr/X11R7/bin/glxgears 47 frames in 5.0 seconds = 9.343 FPS 47 frames in 5.1 seconds = 9.246 FPS 47 frames in 5.1 seconds = 9.210 FPS 47 frames in 5.1 seconds = 9.253 FPS 47 frames in 5.1 seconds = 9.252 FPS 47 frames in 5.1 seconds = 9.236 FPS beagle:~> /usr/pkg/bin/glxgears 2 frames in 7.3 seconds = 0.275 FPS 84 frames in 5.1 seconds = 16.613 FPS 84 frames in 5.0 seconds = 16.641 FPS 83 frames in 5.0 seconds = 16.482 FPS 83 frames in 5.0 seconds = 16.480 FPS 83 frames in 5.0 seconds = 16.436 FPS
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/options.mk14
1 files changed, 9 insertions, 5 deletions
diff --git a/graphics/MesaLib/options.mk b/graphics/MesaLib/options.mk
index 6502b7a0b08..3c89814f8ad 100644
--- a/graphics/MesaLib/options.mk
+++ b/graphics/MesaLib/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.37 2015/09/13 01:20:05 tnn Exp $
+# $NetBSD: options.mk,v 1.38 2015/09/13 12:32:14 bouyer Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
PKG_SUPPORTED_OPTIONS= llvm dri
@@ -92,16 +92,19 @@ PLIST.i965_dri= yes
DRI_DRIVERS+= i965
.endif
-# AMD Radeon r600
-PLIST.r600= yes
-GALLIUM_DRIVERS+= r600
-
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*)
# Qualcomm SnapDragon, libdrm_freedreno.pc
# GALLIUM_DRIVERS+= freedreno
# Broadcom VideoCore 4
# GALLIUM_DRIVERS+= vc4
+.else
+
+# AMD Radeon r600
+PLIST.r600= yes
+GALLIUM_DRIVERS+= r600
+
# nVidia
PLIST.nouveau= yes
GALLIUM_DRIVERS+= nouveau
@@ -117,6 +120,7 @@ DRI_DRIVERS+= r200
# classic DRI nouveau
PLIST.nouveau_dri= yes
DRI_DRIVERS+= nouveau
+.endif
CONFIGURE_ARGS+= --with-egl-platforms=x11,drm
CONFIGURE_ARGS+= --with-gallium-drivers=${GALLIUM_DRIVERS:ts,}