aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVadim Girlin <[email protected]>2011-12-16 07:32:07 +0400
committerTom Stellard <[email protected]>2012-04-23 08:53:47 -0400
commit65b35b63d377a1a74627d60ea6f8f1caae6a01a9 (patch)
treea9c28364107fe5cbf5949fcaa40b5458b996a430 /src/gallium/drivers
parentadb8eca1d85624d9cf2519ad47f2c886556855fb (diff)
r600g: fix gpr number calculation
Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/r600_asm.c3
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 3298386a44e..0ecca363f1c 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))) &&