perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / arb_fragment_program / fdo38145.shader_test
blobd5cf18ccf5dbb1a6782acab426fcbaab2adcad24
1 # test for a regression in the R600 SPI setup that affected doom3 rendering.
2 # Author: Vadim Girlin
4 [require]
5 GL >= 1.3
6 ARB_vertex_program
7 ARB_fragment_program
9 [vertex program]
10 !!ARBvp1.0
11 OPTION ARB_position_invariant;
12 MOV     result.texcoord[0],0;
13 MOV     result.texcoord[1],1;
14 END
16 [fragment program]
17 !!ARBfp1.0
18 TEMP    R0;
19 MOV     R0, fragment.position;
20 MOV     result.color,fragment.texcoord[1];
21 END
23 [test]
24 ortho 0 1 0 1
25 clear color 0.0 0.0 0.0 0.0
26 clear
27 draw rect 0 0 1 1
28 probe all rgba 1.0 1.0 1.0 1.0