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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
and-operator-short-circuit.shader_test
blob
543a4062024e08559dfc0ef136abbd59334c68f2
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
void main()
6
{
7
float x = 0.75;
8
// this should always be false
9
if (x <= 0.5 && ++x > 0.0) {
10
x += 0.1;
11
}
12
gl_FragColor = vec4(x);
13
}
14
15
16
[test]
17
draw rect -1 -1 2 2
18
relative probe rgba (0.5, 0.5) (0.75, 0.75, 0.75, 0.75)