perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.30 / execution / vs-multiply-ivec4-const.shader_test
blob51d68b629409cce89d06758d715a0b3b69e91305
1 # Check that multiplying an ivec4 by a constant value works correctly
2 # in the vertex shader.
4 [require]
5 GLSL >= 1.30
7 [vertex shader]
8 #version 130
9 uniform ivec4 x;
10 uniform ivec4 expected;
12 void main()
14   gl_Position = gl_Vertex;
15   if (x * 0x69c477b9 == expected)
16     gl_FrontColor = vec4(0.0, 1.0, 0.0, 1.0);
17   else
18     gl_FrontColor = vec4(1.0, 0.0, 0.0, 1.0);
21 [fragment shader]
22 #version 130
23 void main()
25   gl_FragColor = gl_Color;
28 [test]
29 uniform ivec4 x        -763033965 -1295568908 -1071767891 -1156452404
30 uniform ivec4 expected 1270617403 -1811147948  1199216133  -895607188
31 draw rect -1 -1 2 2
32 probe all rgba 0.0 1.0 0.0 1.0