Mesa (master): mesa: assertions to check for too many vertex outputs or fragment inputs
Brian Paul
brianp at kemper.freedesktop.org
Fri May 8 20:36:41 UTC 2009
Module: Mesa
Branch: master
Commit: 17a354a119370df9196a010a31fc71cd8712ec46
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=17a354a119370df9196a010a31fc71cd8712ec46
Author: Brian Paul <brianp at vmware.com>
Date: Fri May 8 14:34:15 2009 -0600
mesa: assertions to check for too many vertex outputs or fragment inputs
---
src/mesa/main/context.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index ddbc631..5e0f2d7 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -602,6 +602,10 @@ _mesa_init_constants(GLcontext *ctx)
ASSERT(MAX_NV_VERTEX_PROGRAM_TEMPS <= MAX_PROGRAM_TEMPS);
ASSERT(MAX_NV_VERTEX_PROGRAM_INPUTS <= VERT_ATTRIB_MAX);
ASSERT(MAX_NV_VERTEX_PROGRAM_OUTPUTS <= VERT_RESULT_MAX);
+
+ /* check that we don't exceed various 32-bit bitfields */
+ ASSERT(VERT_RESULT_MAX <= 32);
+ ASSERT(FRAG_ATTRIB_MAX <= 32);
}
More information about the mesa-commit
mailing list