From: Marek Olšák Date: Tue, 8 Nov 2011 22:19:03 +0000 (+0100) Subject: r600g: clarify meaning of one variable in shader codegen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60302f83e2344195f9a1c37215def09fa9c45ff9;p=mesa.git r600g: clarify meaning of one variable in shader codegen It's easier to read now. --- diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 448e03ae39e..5ce464d1c54 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -897,7 +897,7 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi output[i + j].inst = BC_INST(ctx.bc, V_SQ_CF_ALLOC_EXPORT_WORD1_SQ_CF_INST_EXPORT); output[i + j].type = V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_PIXEL; } - j--; + j = shader->nr_cbufs-1; } } else if (shader->output[i].name == TGSI_SEMANTIC_POSITION) { output[i + j].array_base = 61;