perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / fs-bool-less-compare-false.shader_test
blobead7a731e021b34266fd394b61227ff876e812f2
1 # This test exercises a bug introduced in i965: Comparison of comparison
2 # results to boolean values gave incorrect results.
3 [require]
4 GLSL >= 1.10
6 [vertex shader]
7 void main()
9   gl_Position = gl_Vertex;
12 [fragment shader]
13 uniform float one;
14 uniform float zero;
15 uniform bool f;
17 void main()
19         if (one < zero == f)
20                 gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);
21         else
22                 gl_FragColor = vec4(1.0, 0.0, 0.0, 0.0);
25 [test]
26 uniform float one 1.0
27 uniform float zero 0.0
28 uniform int f 0
30 draw rect -1 -1 2 2
31 probe all rgba 0.0 1.0 0.0 0.0