summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-06-28 19:55:54 +0000
committerTom Stellard <[email protected]>2012-07-09 13:42:24 +0000
commit39323e8f792a33f4fe3028c286a1638dc16a38a4 (patch)
tree26ae865d8d81b003c698408ea2a4201e72d3b54a /src
parentda9c8a73ec6fcb0e92204a739c1a7c43f145efef (diff)
r600g: Update number of gprs when adding a vertex instruction
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index b0cda3a37df..2341bec4412 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1609,6 +1609,10 @@ int r600_bytecode_add_vtx(struct r600_bytecode *bc, const struct r600_bytecode_v
bc->ndw += 4;
if ((bc->cf_last->ndw / 4) >= r600_bytecode_num_tex_and_vtx_instructions(bc))
bc->force_add_cf = 1;
+
+ bc->ngpr = MAX2(bc->ngpr, vtx->src_gpr + 1);
+ bc->ngpr = MAX2(bc->ngpr, vtx->dst_gpr + 1);
+
return 0;
}