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

Author: Nicolai Hähnle <nhaeh...@gmail.com>
Date:   Sun Oct 11 12:40:07 2009 +0200

r300g: Fix fragment program constants upload on R300

Signed-off-by: Nicolai Hähnle <nhaeh...@gmail.com>

---

 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 77ce431..570b4c5 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -212,7 +212,7 @@ void r300_emit_fragment_program_code(struct r300_context* 
r300,
     }
 
     if (constants->Count) {
-        OUT_CS_ONE_REG(R300_PFS_PARAM_0_X, constants->Count * 4);
+        OUT_CS_REG_SEQ(R300_PFS_PARAM_0_X, constants->Count * 4);
         for(i = 0; i < constants->Count; ++i) {
             const float * data = get_shader_constant(r300, 
&constants->Constants[i], externals);
             OUT_CS(pack_float24(data[0]));

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to