From: Corbin Simpson Date: Fri, 16 Apr 2010 06:35:48 +0000 (-0700) Subject: r300/compiler: Oops, this slipped through. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a089fe281645395d68cfae6d66151a8a88fe5f8e;p=mesa.git r300/compiler: Oops, this slipped through. --- 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");