From a089fe281645395d68cfae6d66151a8a88fe5f8e Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Thu, 15 Apr 2010 23:35:48 -0700 Subject: [PATCH] r300/compiler: Oops, this slipped through. --- src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c | 6 ++++-- 1 file 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 1e126d546d7..5fe10dbfe8b 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"); -- 2.30.2