From: Tom Stellard Date: Thu, 28 Jun 2012 19:55:54 +0000 (+0000) Subject: r600g: Update number of gprs when adding a vertex instruction X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39323e8f792a33f4fe3028c286a1638dc16a38a4;p=mesa.git r600g: Update number of gprs when adding a vertex instruction --- 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; }