Mesa (master): r300g: fix uploading RC state shader constants on r3xx

Marek Olšák mareko at kemper.freedesktop.org
Mon Jun 14 04:05:04 PDT 2010


Module: Mesa
Branch: master
Commit: 8ad410dc13e1b05a987699685c1a291f96442101
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ad410dc13e1b05a987699685c1a291f96442101

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Jun 14 13:03:13 2010 +0200

r300g: fix uploading RC state shader constants on r3xx

I've messed this up in one of my previous commits.

Reported-by: Igor Murzov

---

 src/gallium/drivers/r300/r300_emit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 46b958b..64d66e4 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -204,7 +204,7 @@ void r300_emit_fs_rc_constant_state(struct r300_context* r300, unsigned size, vo
                     get_rc_constant_state(r300, &constants->Constants[i]);
 
             for (j = 0; j < 4; j++)
-                cdata[i] = pack_float24(data[i]);
+                cdata[j] = pack_float24(data[j]);
 
             OUT_CS_REG_SEQ(R300_PFS_PARAM_0_X + i * 16, 4);
             OUT_CS_TABLE(cdata, 4);



More information about the mesa-commit mailing list