ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_vertex_program / z-write.shader_test
blob008aca7b4ba6af6a165650fd3cd2c8cf7887a46e
1 [require]
2 GL >= 1.3
3 ARB_vertex_program
4 depthbuffer
6 [vertex program]
7 !!ARBvp1.0
8 PARAM p1 = program.local[1];
9 MOV result.position, vertex.position;
10 MOV result.position.z, p1.y;
11 MOV result.color, vertex.color;
12 END
14 [test]
15 enable GL_DEPTH_TEST
16 clear depth 1
17 ortho -4 4 -4 4
18 color 0.25 0.75 0.5 0.25
19 parameter local_vp 1 (0.5, 0.25, 0.9, 0.5)
20 clear
21 draw rect -0.25 -0.25 0.5 0.5
22 relative probe rgba (0.5, 0.5) (0.25, 0.75, 0.5, 0.25)
23 probe depth 125 125 0.625