summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-03-17 11:48:55 -0700
committerCorbin Simpson <[email protected]>2009-03-17 11:51:14 -0700
commit0f0d0b62ff3e0f1a8b6c6b6686e760cbc9a31517 (patch)
tree1b669572bc3a3f141bb282e22454b0208fe1316e /src/gallium/drivers/r300
parentfbd758c55e6dc443f877bd87d5e6c54c86f61a33 (diff)
r300-gallium: r500-fs: Fixup immediate->constant counting a bit.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_state_shader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_state_shader.c b/src/gallium/drivers/r300/r300_state_shader.c
index 0b600b9f519..20b83bd15b1 100644
--- a/src/gallium/drivers/r300/r300_state_shader.c
+++ b/src/gallium/drivers/r300/r300_state_shader.c
@@ -541,10 +541,12 @@ void r500_translate_fragment_shader(struct r300_context* r300,
break;
case TGSI_TOKEN_TYPE_IMMEDIATE:
debug_printf("r300: Emitting immediate to constant buffer, "
- "position %d\n", consts->user_count);
+ "position %d\n",
+ assembler->imm_offset + assembler->imm_count);
/* I am not amused by the length of these. */
for (i = 0; i < 4; i++) {
- consts->constants[assembler->imm_offset][i] =
+ consts->constants[assembler->imm_offset +
+ assembler->imm_count][i] =
parser.FullToken.FullImmediate.u.ImmediateFloat32[i]
.Float;
}