Mesa (master): configure.ac: add an enable switch for float textures (v2)
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 15 03:18:27 UTC 2011
Module: Mesa
Branch: master
Commit: 848f7d368d97f02eeb0c6546548784d639e3c3bf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=848f7d368d97f02eeb0c6546548784d639e3c3bf
Author: Marek Olšák <maraeo at gmail.com>
Date: Fri Apr 1 01:12:41 2011 +0200
configure.ac: add an enable switch for float textures (v2)
So --enable-texture-float it is.
Hardware drivers (including the Gallium ones) should
use #ifdef TEXTURE_FLOAT_ENABLED to hide any code that may
expose floating-point renderbuffers via any interface,
public or private.
v2: Print a warning when using --enable-texture-float.
---
configure.ac | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5265cf6..ddd8608 100644
--- a/configure.ac
+++ b/configure.ac
@@ -319,6 +319,21 @@ else
esac
fi
+dnl
+dnl potentially-infringing-but-nobody-knows-for-sure stuff
+dnl
+AC_ARG_ENABLE([texture-float],
+ [AS_HELP_STRING([--enable-texture-float],
+ [enable floating-point textures and renderbuffers @<:@default=disabled@:>@])],
+ [enable_texture_float="$enableval"],
+ [enable_texture_float=no]
+)
+if test "x$enable_texture_float" = xyes; then
+ AC_MSG_WARN([Floating-point textures enabled.])
+ AC_MSG_WARN([Please consult docs/patents.txt with your lawyer before building Mesa.])
+ DEFINES="$DEFINES -DTEXTURE_FLOAT_ENABLED"
+fi
+
GL_LIB_NAME='lib$(GL_LIB).'${LIB_EXTENSION}
GLU_LIB_NAME='lib$(GLU_LIB).'${LIB_EXTENSION}
GLUT_LIB_NAME='lib$(GLUT_LIB).'${LIB_EXTENSION}
More information about the mesa-commit
mailing list