[Mesa-dev] [PATCH 2/6] r600g: fix gpr number calculation
Tom Stellard
tstellar at gmail.com
Tue Apr 17 09:11:02 PDT 2012
From: Vadim Girlin <vadimgirlin at gmail.com>
Signed-off-by: Tom Stellard <thomas.stellard at amd.com>
---
src/gallium/drivers/r600/r600_asm.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 3298386..0ecca36 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -290,6 +290,9 @@ int r600_bytecode_add_output(struct r600_bytecode *bc, const struct r600_bytecod
{
int r;
+ if (output->gpr >= bc->ngpr)
+ bc->ngpr = output->gpr + 1;
+
if (bc->cf_last && (bc->cf_last->inst == output->inst ||
(bc->cf_last->inst == BC_INST(bc, V_SQ_CF_ALLOC_EXPORT_WORD1_SQ_CF_INST_EXPORT) &&
output->inst == BC_INST(bc, V_SQ_CF_ALLOC_EXPORT_WORD1_SQ_CF_INST_EXPORT_DONE))) &&
--
1.7.7.6
More information about the mesa-dev
mailing list