[Mesa-dev] [PATCH v3 01/21] meson: Add switch for texture float
Dylan Baker
dylan at pnwbakers.com
Fri Oct 13 22:05:07 UTC 2017
Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
meson.build | 4 ++++
meson_options.txt | 2 ++
2 files changed, 6 insertions(+)
diff --git a/meson.build b/meson.build
index 02264aeed4e..54230a91ed5 100644
--- a/meson.build
+++ b/meson.build
@@ -37,6 +37,10 @@ with_vulkan_icd_dir = get_option('vulkan-icd-dir')
with_tests = get_option('build-tests')
with_valgrind = get_option('valgrind')
with_asm = get_option('asm')
+if get_option('texture-float')
+ pre_args += '-DTEXTURE_FLOAT_ENABLED'
+ message('WARNING: Floating-point texture enabled. Please consult docs/patents.txt and your lawyer before building mesa.')
+endif
# XXX: yeah, do these
with_appledri = false
diff --git a/meson_options.txt b/meson_options.txt
index abd5135742a..e0a162a0b82 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -52,3 +52,5 @@ option('valgrind', type : 'boolean', value : true,
description : 'Build with valgrind support if possible')
option('build-tests', type : 'boolean', value : false,
description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.')
+option('texture-float', type : 'boolean', value : false,
+ description : 'Enable floating point textures and renderbuffers. This option may be patent encumbered, please read docs/patents.txt and consult with your lawyer before turning this on.')
--
2.14.2
More information about the mesa-dev
mailing list