Mesa (7.10): tgsi/ureg: bump the limit of immediates
Marek Olšák
mareko at kemper.freedesktop.org
Wed Jun 1 00:21:04 UTC 2011
Module: Mesa
Branch: 7.10
Commit: 224ed851ed72335de9f4c424eb023fd4c929bfcf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=224ed851ed72335de9f4c424eb023fd4c929bfcf
Author: Marek Olšák <maraeo at gmail.com>
Date: Sun May 29 02:53:01 2011 +0200
tgsi/ureg: bump the limit of immediates
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 at vmware.com>
(cherry picked from commit ff038170ff9042c0ee535be7c2837d200e06b0c0)
---
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
index 7d13a17..08a8600 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c
@@ -71,7 +71,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
More information about the mesa-commit
mailing list