1 # This tests unrolling of a loop with two exit point where the trip count
2 # of one of the exits is known and the other unknown (conditional on uniform).
4 # Here we test that control flow that comes before the terminators is properly
5 # inserted into the unrolled loop.
14 gl_Position = gl_Vertex;
16 vec4 colour = vec4(1.0, 0.0, 0.0, 1.0);
22 colour = vec4(0.0, 0.0, 1.0, 1.0);
23 j++; // we use this so the if doesn't get reduced to a series of bcsel
25 colour = vec4(0.0, 1.0, 0.0, 1.0);
33 colour = vec4(1.0, 0.0, 0.0, 1.0);
38 gl_FrontColor = colour;
44 gl_FragColor = gl_Color;
48 clear color 0.5 0.5 0.5 0.5
52 probe all rgba 0.0 1.0 0.0 1.0
56 probe all rgba 0.0 0.0 1.0 1.0