r300/compiler: Oops, this slipped through.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 16 Apr 2010 06:35:48 +0000 (23:35 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 16 Apr 2010 07:43:17 +0000 (00:43 -0700)
src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c

index 1e126d546d78a745ff6dcfa71a8892388d0a74a1..5fe10dbfe8b4cee8d619e5b14daaf834422cf0d6 100644 (file)
@@ -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");