repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
cl: Don't use device_infos if num_device_infos == 0
[piglit.git]
/
tests
/
shaders
/
ssa
/
fs-if-def-else-break.shader_test
blob
c763df6e0903afc96a12ae5b047ddd9b1e09a69a
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
uniform bool t, f;
6
7
void main()
8
{
9
gl_FragColor = vec4(0, 0, 1, 1);
10
do {
11
int a = 1;
12
if (t) {
13
a = 2;
14
} else {
15
break;
16
}
17
18
if (a == 2)
19
gl_FragColor = vec4(0, 1, 0, 1);
20
else
21
gl_FragColor = vec4(1, 0, 0, 1);
22
} while (f);
23
}
24
25
[test]
26
uniform int t 1
27
uniform int f 0
28
29
draw rect -1 -1 2 2
30
probe all rgba 0.0 1.0 0.0 1.0