From 6211a14137a9504bf90dfd6bc06df42bcd72389f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Aug 2006 23:37:13 +0000 Subject: [PATCH] update MAX_INSTRUCTIONS limit --- src/mesa/shader/arbprogparse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) /** -- 2.30.2