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

Author: Corbin Simpson <mostawesomed...@gmail.com>
Date:   Thu Apr 15 23:35:48 2010 -0700

r300/compiler: Oops, this slipped through.

---

 src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c 
b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
index 1e126d5..5fe10db 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
@@ -113,9 +113,11 @@ void r3xx_compile_fragment_program(struct 
r300_fragment_program_compiler* c)
         * Remember, lowering comes last! */
        struct radeon_program_transformation common_transformations[] = {
                { &radeonTransformTEX, c },
-               { &radeonTransformALU, 0 }
        };
-       radeonLocalTransform(&c->Base, 2, common_transformations);
+       radeonLocalTransform(&c->Base, 1, common_transformations);
+
+       common_transformations[0].function = &radeonTransformALU;
+       radeonLocalTransform(&c->Base, 1, common_transformations);
 
        if (c->Base.Debug) {
                fprintf(stderr, "Fragment Program: After native rewrite:\n");

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

Reply via email to