projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da9c8a7
)
r600g: Update number of gprs when adding a vertex instruction
author
Tom Stellard
<thomas.stellard@amd.com>
Thu, 28 Jun 2012 19:55:54 +0000
(19:55 +0000)
committer
Tom Stellard
<thomas.stellard@amd.com>
Mon, 9 Jul 2012 13:42:24 +0000
(13:42 +0000)
src/gallium/drivers/r600/r600_asm.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/r600_asm.c
b/src/gallium/drivers/r600/r600_asm.c
index b0cda3a37dfc654107c1798d3f451778da2a47ab..2341bec44126cfacc1739aa5d9ead67694c7074d 100644
(file)
--- 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;
}