Brian's fix for bug9829
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 17 Aug 2007 17:36:13 +0000 (13:36 -0400)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 17 Aug 2007 17:36:13 +0000 (13:36 -0400)
src/mesa/main/texenvprogram.c

index 72b54b2..9c84da9 100644 (file)
@@ -38,7 +38,7 @@
  * According to Glean's texCombine test, no more than 21 instructions
  * are needed.  Allow a few extra just in case.
  */
-#define MAX_INSTRUCTIONS 24
+#define MAX_INSTRUCTIONS ((MAX_TEXTURE_UNITS * 6) + 10) /* see bug 9829 */
 
 #define DISASSEM (MESA_VERBOSE & VERBOSE_DISASSEM)