ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / arb_vertex_program / instructions / log.shader_test
blob407138fb36c25d964325f12244cd70babd2cf8d4
1 [require]
2 GL >= 1.3
3 ARB_vertex_program
5 [vertex program]
6 !!ARBvp1.0
7 PARAM values = {64.0, 50, 30, 4};
8 PARAM scale = {0.1, 0.1, 0.1, 0.1};
9 MOV result.position, vertex.position;
10 TEMP t;
11 LOG t.x, values.x;
12 LOG t.y, values.y;
13 LOG t.z, values.z;
14 LOG t.w, values.w;
15 MUL result.color, t, scale;
16 END
18 [test]
19 ortho -4 4 -4 4
20 draw rect -0.25 -0.25 0.5 0.5
21 # floor(log2(value.x)), value.y / 2^(floor(log2(value.y))), roughApproxLog2(value.z), 0.1
22 relative probe rgba (0.5, 0.5) (0.6, 0.15, 0.49, 0.1)