Mesa (master): mesa: increase max constants/uniforms to 256 (vec4 vectors)

Brian Paul brianp at kemper.freedesktop.org
Wed Dec 31 00:22:21 UTC 2008


Module: Mesa
Branch: master
Commit: 432e9fa85233f28ce42c2bcc94053a2deb45dad9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=432e9fa85233f28ce42c2bcc94053a2deb45dad9

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Dec 30 17:00:06 2008 -0700

mesa: increase max constants/uniforms to 256 (vec4 vectors)

---

 src/mesa/main/config.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index f1f12b8..424ed60 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -183,14 +183,14 @@
 
 /** For any program target/extension */
 /*@{*/
-#define MAX_PROGRAM_LOCAL_PARAMS 128 /* KW: power of two */
+#define MAX_PROGRAM_LOCAL_PARAMS 256 /**< per-program constants (power of two) */
 #define MAX_PROGRAM_ENV_PARAMS 128
 #define MAX_PROGRAM_MATRICES 8
 #define MAX_PROGRAM_MATRIX_STACK_DEPTH 4
 #define MAX_PROGRAM_CALL_DEPTH 8
 #define MAX_PROGRAM_TEMPS 128
 #define MAX_PROGRAM_ADDRESS_REGS 2
-#define MAX_UNIFORMS 128   /**< number of float components */
+#define MAX_UNIFORMS 256   /**< number of vec4 uniforms */
 #define MAX_VARYING 8      /**< number of float[4] vectors */
 #define MAX_SAMPLERS 8
 #define MAX_PROGRAM_INPUTS 32




More information about the mesa-commit mailing list