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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
glsl-fs-functions-6.shader_test
blob
c6a2f22d8930e09001b5bd86cc9c3e7711bffce4
1
[require]
2
GL >= 2.0
3
GLSL >= 1.10
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_Vertex;
9
}
10
11
[fragment shader]
12
float val = 0.0;
13
void sub() {
14
for (int i = 0; i < 3; ++i) {
15
for (int j = 0; j < 3; ++j) {
16
if (i == 1 && j == 1)
17
return;
18
val = 0.5;
19
}
20
}
21
val = 1.0;
22
}
23
24
void main() {
25
sub();
26
gl_FragColor = vec4(val);
27
}
28
29
[test]
30
draw rect -1 -1 2 2
31
probe all rgb 0.5 0.5 0.5 0.5