Mesa (gallium-0.1): mesa: increase MAX_INSTRUCTIONS

Brian Paul brianp at kemper.freedesktop.org
Fri Sep 26 01:22:58 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 3f99f501db2582e241851e63e432c18e2de415be
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f99f501db2582e241851e63e432c18e2de415be

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Thu Sep 25 18:40:16 2008 -0600

mesa: increase MAX_INSTRUCTIONS

---

 src/mesa/main/texenvprogram.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index c699c43..c64d88f 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -37,11 +37,9 @@
 #include "texenvprogram.h"
 
 /**
- * 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)
 




More information about the mesa-commit mailing list