tgsi/ureg: bump the limit of immediates
authorMarek Olšák <maraeo@gmail.com>
Sun, 29 May 2011 00:53:01 +0000 (02:53 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 30 May 2011 08:48:03 +0000 (10:48 +0200)
Lowered indirect addressing can create lots of immediates.

Fixes piglit/glsl-fs-uniform-array-7 on r300g.

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.c

index 4564ab81f99d51775b6ef9c9427b1eaaad5d1e4c..a920741c36bbca1321ac239952636c60ce8850ec 100644 (file)
@@ -72,7 +72,7 @@ struct ureg_tokens {
 #define UREG_MAX_SYSTEM_VALUE PIPE_MAX_ATTRIBS
 #define UREG_MAX_OUTPUT PIPE_MAX_ATTRIBS
 #define UREG_MAX_CONSTANT_RANGE 32
-#define UREG_MAX_IMMEDIATE 32
+#define UREG_MAX_IMMEDIATE 256
 #define UREG_MAX_TEMP 256
 #define UREG_MAX_ADDR 2
 #define UREG_MAX_PRED 1