perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-if-assign-call.shader_test
blob2569586af233a229a424a8f7fc1743e2bbb219e6
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 void main()
7         gl_Position = gl_Vertex;
10 [fragment shader]
11 /* This shader was reported in bug #27216 to cause an assertion failure
12  * in Mesa's GLSL compiler. If the assignment or function call are removed,
13  * or the assignment moved out of the if, it succeeds.
14  */
15 void main()
17         float thing;
19         if ((thing = sqrt (5.0)) > 1.0)
20                 gl_FragColor = vec4 (0.0, 1.0, 0.0, 1.0);
23 [test]
24 draw rect -1 -1 2 2
25 probe rgb 1 1 0.0 1.0 0.0