summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2012-08-12 00:02:32 -0700
committerVinson Lee <vlee@freedesktop.org>2012-08-15 22:04:24 -0700
commit3d6892c4793ae1fd1ef82d40e4af8004393b0480 (patch)
treee5eaa7877f95b3c1ca69c83919470ce9b6a7bb38 /scons
parent6a3ac03f2b80c80655d66b31c0218754f70156de (diff)
scons: Add option to enable floating-point textures.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'scons')
-rwxr-xr-xscons/gallium.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index f4776d83d7..8fc17b3fa4 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -298,6 +298,10 @@ def generate(env):
cppdefines += ['BEOS_THREADS']
if env['embedded']:
cppdefines += ['PIPE_SUBSYSTEM_EMBEDDED']
+ if env['texture_float']:
+ print 'warning: Floating-point textures enabled.'
+ print 'warning: Please consult docs/patents.txt with your lawyer before building Mesa.'
+ cppdefines += ['TEXTURE_FLOAT_ENABLED']
env.Append(CPPDEFINES = cppdefines)
# C compiler options