Mesa (master): r300-gallium: r500-fs: Fixup immediate-> constant counting a bit.
Corbin Simpson
csimpson at kemper.freedesktop.org
Tue Mar 17 18:52:01 UTC 2009
Module: Mesa
Branch: master
Commit: 0f0d0b62ff3e0f1a8b6c6b6686e760cbc9a31517
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0f0d0b62ff3e0f1a8b6c6b6686e760cbc9a31517
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Tue Mar 17 11:48:55 2009 -0700
r300-gallium: r500-fs: Fixup immediate->constant counting a bit.
---
src/gallium/drivers/r300/r300_state_shader.c | 6 ++++--
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 0b600b9..20b83bd 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;
}
More information about the mesa-commit
mailing list