update MAX_INSTRUCTIONS limit
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Aug 2006 23:37:13 +0000 (23:37 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Aug 2006 23:37:13 +0000 (23:37 +0000)
src/mesa/shader/arbprogparse.c

index b2dc0b29c7e522521cbdf95ca9bba1f0e6b1049d..6c1fb04de707daf8c94712864bb1ad4d5332ba26 100644 (file)
 #include "grammar_mesa.h"
 #include "program.h"
 #include "context.h"
+#include "macros.h"
 #include "mtypes.h"
 #include "program_instruction.h"
 
 
-#define MAX_INSTRUCTIONS 256
+/* For ARB programs, use the NV instruction limits */
+#define MAX_INSTRUCTIONS MAX2(MAX_NV_FRAGMENT_PROGRAM_INSTRUCTIONS, \
+                              MAX_NV_VERTEX_PROGRAM_INSTRUCTIONS)
 
 
 /**