diff options
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) /** |