1 # Test against a dataflow analysis bug that appeared in the R300 program
4 # Note the redundant MOV before the first MAD. This is intended, and part
5 # of what triggered the (admittedly somewhat subtle) bug.
13 OPTION ARB_position_invariant;
18 MOV tweight, vertex.texcoord[0];
19 MUL tx, tweight.x, program.local[0];
20 MUL ty, tweight.x, program.local[1];
22 MOV t, program.local[2];
23 MAD tx, tweight.y, program.local[2], tx;
24 MOV t, program.local[3];
25 MAD ty, tweight.y, t, ty;
27 ADD result.color, tx, ty;
32 texcoord 0 (-1, 2, 0, 0)
33 parameter local_vp 0 (0, 0.5, -1.3, 0.1)
34 parameter local_vp 1 (-0.3, 0, 0.4, -0.5)
35 parameter local_vp 2 (0.2, 0.3, 0, 0.2)
36 parameter local_vp 3 (-0.1, 0.1, -0.1, 0)
37 clear color 1.0 1.0 0.0 0.0
40 probe all rgba 0.5 0.3 0.7 0.8