perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_fragment_program / fp-two-constants.shader_test
blobe16320d8f96fbb90884910f946586b20a716648b
1 # Detects whether or not the implementation correctly handles having two
2 # constants in the same operand.
4 # This is a potential issue with gen4, and is something we should probably
5 # make the optimizer handle.
7 [require]
8 GL >= 1.3
9 ARB_vertex_program
10 ARB_fragment_program
12 [vertex program]
13 !!ARBvp1.0
14 OPTION ARB_position_invariant;
15 END
17 [fragment program]
18 !!ARBfp1.0
19 ADD result.color, {1, 0, .25, 0}, {0.5, 0, 1, 0};
20 END
22 [test]
23 ortho 0 1 0 1
24 clear color 0.0 1.0 0.0 1.0
25 clear
26 draw rect 0 0 1 1
27 probe all rgba 1.0 0.0 1.0 0.0