mirror of https://gitlab.freedesktop.org/mesa/mesa
meson: Add switch for texture float
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
9e779e59b2
commit
3b209e9304
|
@ -37,6 +37,10 @@ with_vulkan_icd_dir = get_option('vulkan-icd-dir')
|
||||||
with_tests = get_option('build-tests')
|
with_tests = get_option('build-tests')
|
||||||
with_valgrind = get_option('valgrind')
|
with_valgrind = get_option('valgrind')
|
||||||
with_asm = get_option('asm')
|
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
|
# XXX: yeah, do these
|
||||||
with_appledri = false
|
with_appledri = false
|
||||||
|
|
|
@ -52,3 +52,5 @@ option('valgrind', type : 'boolean', value : true,
|
||||||
description : 'Build with valgrind support if possible')
|
description : 'Build with valgrind support if possible')
|
||||||
option('build-tests', type : 'boolean', value : false,
|
option('build-tests', type : 'boolean', value : false,
|
||||||
description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.')
|
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.')
|
||||||
|
|
Loading…
Reference in New Issue