mesa: add 'enableR600LlvmCompiler' flag to switch on r600-llvm-compiler support (defaults to off)

This commit is contained in:
Peter Simons 2013-01-28 17:39:29 +01:00
parent ed7087a39b
commit 86f8d4bfa2

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, flex, bison, pkgconfig, libdrm, file, expat, makedepend { stdenv, fetchurl, flex, bison, pkgconfig, libdrm, file, expat, makedepend
, libXxf86vm, libXfixes, libXdamage, glproto, dri2proto, libX11, libxcb, libXext , libXxf86vm, libXfixes, libXdamage, glproto, dri2proto, libX11, libxcb, libXext
, libXt, udev, enableTextureFloats ? false , libXt, udev, enableTextureFloats ? false, enableR600LlvmCompiler ? false
, python, libxml2Python, autoconf, automake, libtool, llvm, writeText }: , python, libxml2Python, autoconf, automake, libtool, llvm, writeText }:
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
@ -25,8 +25,8 @@ stdenv.mkDerivation {
configureFlags = configureFlags =
"" ""
+ " --enable-gles1 --enable-gles2 --enable-gallium-egl" + " --enable-gles1 --enable-gles2 --enable-gallium-egl"
# + " --enable-r600-llvm-compiler"
+ " --with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast" + " --with-gallium-drivers=i915,nouveau,r300,r600,svga,swrast"
+ stdenv.lib.optionalString enableR600LlvmCompiler " --enable-r600-llvm-compiler"
# Texture floats are patented, see docs/patents.txt # Texture floats are patented, see docs/patents.txt
+ stdenv.lib.optionalString enableTextureFloats " --enable-texture-float"; + stdenv.lib.optionalString enableTextureFloats " --enable-texture-float";