summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-11-08 23:19:03 +0100
committerMarek Olšák <[email protected]>2011-11-09 00:18:53 +0100
commit60302f83e2344195f9a1c37215def09fa9c45ff9 (patch)
tree2d4462f599a81531554f139d79b8c914f34d7840 /src
parent1b375f8413d898a18c989c20d0dc16d3b1be33bc (diff)
r600g: clarify meaning of one variable in shader codegen
It's easier to read now.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c2
1 files changed, 1 insertions, 1 deletions
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;