Mesa (7.9): mesa: Bump the number of bits in the register index.
Brian Paul
brianp at kemper.freedesktop.org
Tue Jan 4 18:10:41 UTC 2011
Module: Mesa
Branch: 7.9
Commit: 0ab166d5564972ff43aa652e816625a5c0ccb3f0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0ab166d5564972ff43aa652e816625a5c0ccb3f0
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jan 4 11:03:54 2011 -0700
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.
(cherry picked from commit a9fa0f3a2f318a7c57163491abe931e86b2cd4c3)
---
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