ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / arb_vertex_program / instructions / dp3.shader_test
blobd7747251a8592d378e4f0d0b02000b33213ec5e9
1 [require]
2 GL >= 1.3
3 ARB_vertex_program
5 [vertex program]
6 !!ARBvp1.0
7 PARAM p2 = program.local[2];
8 PARAM bias = { 0.5, 0.5, 0.5, 0.5 };
9 TEMP t;
10 MOV result.position, vertex.position;
11 DP3 t, p2, vertex.color;
12 ADD result.color, t, bias;
13 END
15 [test]
16 ortho -4 4 -4 4
17 color 0.25 0.75 0.5 0.25
18 parameter local_vp 2 (-1.0, 0.0, 0.25, -0.5)
19 draw rect -0.25 -0.25 0.5 0.5
20 relative probe rgba (0.5, 0.5) (0.375, 0.375, 0.375, 0.375)