mesa: Bump the number of bits in the register index.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 6 Dec 2010 20:01:30 +0000 (20:01 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 6 Dec 2010 20:03:51 +0000 (20:03 +0000)
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

index ca90de7..a383828 100644 (file)
@@ -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
 
 
 /**