perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.30 / execution / vs-multiply-uvec4-const.shader_test
blobcc261361691a60bbf1bfcbfaad82e96b2f5c5b70
1 # Check that multiplying a uvec4 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 uvec4 x;
10 uniform uvec4 expected;
12 void main()
14   gl_Position = gl_Vertex;
15   if (x * 0xe1ac99a1u == 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 uvec4 x        1531867558 1727206098 1831100720 2032151849
30 uniform uvec4 expected 2412359526 1010194450 3728133936 3368413129
31 draw rect -1 -1 2 2
32 probe all rgba 0.0 1.0 0.0 1.0