From: Vinson Lee Date: Sun, 12 Aug 2012 07:02:32 +0000 (-0700) Subject: scons: Add option to enable floating-point textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d6892c4793ae1fd1ef82d40e4af8004393b0480;p=mesa.git scons: Add option to enable floating-point textures. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- diff --git a/common.py b/common.py index 6121a411403..6ff9608c413 100644 --- a/common.py +++ b/common.py @@ -98,5 +98,6 @@ def AddOptions(opts): opts.Add(BoolOption('debug', 'DEPRECATED: debug build', 'yes')) opts.Add(BoolOption('profile', 'DEPRECATED: profile build', 'no')) opts.Add(BoolOption('quiet', 'DEPRECATED: profile build', 'yes')) + opts.Add(BoolOption('texture_float', 'enable floating-point textures and renderbuffers', 'no')) if host_platform == 'windows': opts.Add(EnumOption('MSVS_VERSION', 'MS Visual C++ version', None, allowed_values=('7.1', '8.0', '9.0'))) diff --git a/scons/gallium.py b/scons/gallium.py index f4776d83d7f..8fc17b3fa4a 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