From: Xiang, Haihao Date: Fri, 17 Aug 2007 17:36:13 +0000 (-0400) Subject: Brian's fix for bug9829 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dcfdb63b9fde8134562cb3a4e779a36e0abb4ae5;p=mesa.git Brian's fix for bug9829 --- diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index 72b54b27d9a..9c84da985e0 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -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)