OSDN Git Service

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 b2dc0b2..6c1fb04 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)
 
 
 /**