summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-08-24 23:37:13 +0000
committerBrian Paul <[email protected]>2006-08-24 23:37:13 +0000
commit6211a14137a9504bf90dfd6bc06df42bcd72389f (patch)
treec0f4797f105c01d8f124fe0231731c4481ec87e3 /src/mesa
parentebf58ea3a392cbaddc9341b9f68a57da4f333104 (diff)
update MAX_INSTRUCTIONS limit
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/shader/arbprogparse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index b2dc0b29c7e..6c1fb04de70 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -36,11 +36,14 @@
#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)
/**