From 60302f83e2344195f9a1c37215def09fa9c45ff9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 8 Nov 2011 23:19:03 +0100 Subject: [PATCH] r600g: clarify meaning of one variable in shader codegen It's easier to read now. --- src/gallium/drivers/r600/r600_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2