perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.30 / execution / fs-multiply-const-uvec4.shader_test
blobf8fb86e6ab09193cddf25b20bd4d18e8257a26ee
1 # Check that multiplying a constant value by a uvec4 works correctly
2 # in the fragment shader.
4 [require]
5 GLSL >= 1.30
7 [vertex shader]
8 #version 130
9 void main()
11   gl_Position = gl_Vertex;
14 [fragment shader]
15 #version 130
16 uniform uvec4 x;
17 uniform uvec4 expected;
19 void main()
21   if (0xe1ac99a1u * x == expected)
22     gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
23   else
24     gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
27 [test]
28 uniform uvec4 x        1531867558 1727206098 1831100720 2032151849
29 uniform uvec4 expected 2412359526 1010194450 3728133936 3368413129
30 draw rect -1 -1 2 2
31 probe all rgba 0.0 1.0 0.0 1.0