perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / fs-notEqual-inline-function.shader_test
blob2ccc927c9a486a91877e6422efa0a795841dda0c
1 # This test exercises a bug found in Mesa: if function inlining caused
2 # an execution of notEqual() to be constant-folded, an assertion
3 # failure would occur.
4 [require]
5 GLSL >= 1.10
7 [vertex shader]
8 void main()
10   gl_Position = gl_Vertex;
13 [fragment shader]
14 bvec4 foo(vec4 x, vec4 y)
16   return notEqual(x, y);
19 void main()
21   gl_FragColor = vec4(foo(vec4(0.0, 0.0, 1.0, 1.0),
22                           vec4(0.0, 1.0, 1.0, 0.0)));
25 [test]
26 draw rect -1 -1 2 2
27 probe all rgba 0.0 1.0 0.0 1.0