c->Base.SwizzleCaps = &r300_swizzle_caps;
}
+ /* As a stopgap, run the ALU lowering sequence once again.
+ *
+ * The entire lowering sequence should be fixed so that these little
+ * inter-dependent instructions aren't an issue. I suppose we'd need a
+ * list of safe instructions first... */
+ struct radeon_program_transformation maths_lowering[] = {
+ { &radeonTransformALU, 0 }
+ };
+ radeonLocalTransform(&c->Base, 1, maths_lowering);
+
if (c->Base.Debug) {
fprintf(stderr, "Fragment Program: After native rewrite:\n");
rc_print_program(&c->Base.Program);