mesa: increase MAX_INSTRUCTIONS
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 00:40:16 +0000 (18:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 26 Sep 2008 13:31:42 +0000 (07:31 -0600)
src/mesa/main/texenvprogram.c

index 4eb7437..2bce93e 100644 (file)
@@ -48,11 +48,9 @@ struct texenvprog_cache_item
 
 
 /**
- * This MAX is probably a bit generous, but that's OK.  There can be
- * up to four instructions per texture unit (TEX + 3 for combine),
- * then there's fog and specular add.
+ * Up to nine instructions per tex unit, plus fog, specular color.
  */
-#define MAX_INSTRUCTIONS ((MAX_TEXTURE_UNITS * 4) + 12)
+#define MAX_INSTRUCTIONS ((MAX_TEXTURE_UNITS * 9) + 12)
 
 #define DISASSEM (MESA_VERBOSE & VERBOSE_DISASSEM)