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-lost-copy-problem.shader_test
blob
4eeeacc87ba06ce30ee595913347e215726e1011
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
uniform int count;
6
7
void main()
8
{
9
int j = 0;
10
for (int i = 0; i <= count; ++i)
11
j = i;
12
13
if (j == 6)
14
gl_FragColor = vec4(0, 1, 0, 1);
15
else
16
gl_FragColor = vec4(1, 0, 0, 1);
17
}
18
19
[test]
20
uniform int count 6
21
22
draw rect -1 -1 2 2
23
probe all rgba 0.0 1.0 0.0 1.0