summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2010-04-12 18:23:17 -0700
committerCorbin Simpson <[email protected]>2010-04-12 18:24:05 -0700
commitc2e804a7e1de99a60ff293972772835772d49391 (patch)
treec8cb76599c7673109739cec3e9a1a81e4a20560c /src
parent911fa4a4a16e7cb099107ecf79d9ed8f63139236 (diff)
r300/compiler: Hax around instructions limits in mirroring code.
Stuff's starting to show up in arbnpot.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
index d06429254d8..a5814875bdb 100644
--- a/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
+++ b/src/mesa/drivers/dri/r300/compiler/r3xx_fragprog.c
@@ -110,6 +110,16 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
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);