Mesa (master): mesa: Bump the number of bits in the register index.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Dec 6 20:04:57 UTC 2010


Module: Mesa
Branch: master
Commit: a9fa0f3a2f318a7c57163491abe931e86b2cd4c3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a9fa0f3a2f318a7c57163491abe931e86b2cd4c3

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Dec  6 20:01:30 2010 +0000

mesa: Bump the number of bits in the register index.

More than 1023 temporaries were being used for a Cinebench shader before
doing temporary optimization, causing the index value to wrap around to
-1024.

---

 src/mesa/program/prog_instruction.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/program/prog_instruction.h b/src/mesa/program/prog_instruction.h
index ca90de7..a383828 100644
--- a/src/mesa/program/prog_instruction.h
+++ b/src/mesa/program/prog_instruction.h
@@ -247,7 +247,7 @@ typedef enum prog_opcode {
  * Number of bits for the src/dst register Index field.
  * This limits the size of temp/uniform register files.
  */
-#define INST_INDEX_BITS 10
+#define INST_INDEX_BITS 11
 
 
 /**




More information about the mesa-commit mailing list