diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-24 23:37:13 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-24 23:37:13 +0000 |
commit | 6211a14137a9504bf90dfd6bc06df42bcd72389f (patch) | |
tree | c0f4797f105c01d8f124fe0231731c4481ec87e3 /src | |
parent | ebf58ea3a392cbaddc9341b9f68a57da4f333104 (diff) |
update MAX_INSTRUCTIONS limit
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/arbprogparse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c index b2dc0b29c7..6c1fb04de7 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) /** |