summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2007-12-19 15:48:53 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2007-12-19 15:48:53 +0000
commitdc461d8c8764e2bd8303c1955f244bacab4467fa (patch)
treec28b586b6f5612a15e7e9a6beb53875dbebc19e8 /src/mesa/pipe/i965simple
parent86ddaa9d0e3c80e0fd7b7c99b66e46e0bcbdb04d (diff)
965: count grf allocation correctly for wm prog, first aub triangle
Diffstat (limited to 'src/mesa/pipe/i965simple')
-rw-r--r--src/mesa/pipe/i965simple/brw_wm_decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/i965simple/brw_wm_decl.c b/src/mesa/pipe/i965simple/brw_wm_decl.c
index 392f17fad6..5b1abb9d48 100644
--- a/src/mesa/pipe/i965simple/brw_wm_decl.c
+++ b/src/mesa/pipe/i965simple/brw_wm_decl.c
@@ -9,7 +9,7 @@
static struct brw_reg alloc_tmp(struct brw_wm_compile *c)
{
c->tmp_index++;
- c->reg_index = MAX2(c->reg_index, c->tmp_index);
+ c->reg_index = MAX2(c->reg_index, c->tmp_start + c->tmp_index);
return brw_vec8_grf(c->tmp_start + c->tmp_index, 0);
}