From: Brian Paul Date: Fri, 8 May 2009 20:34:15 +0000 (-0600) Subject: mesa: assertions to check for too many vertex outputs or fragment inputs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=17a354a119370df9196a010a31fc71cd8712ec46;p=mesa.git mesa: assertions to check for too many vertex outputs or fragment inputs --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index ddbc631e674..5e0f2d7b1bd 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); }