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
glsl: test loop unroll with uint overflow
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
glsl-fs-discard-only.shader_test
blob
5b9402b7ef26bc6811e0a8937473665b8120ba1b
1
[require]
2
GLSL >= 1.10
3
depthbuffer
4
5
[vertex shader passthrough]
6
7
[fragment shader]
8
void main()
9
{
10
if (gl_FragCoord.x < 10.0)
11
discard;
12
}
13
14
[test]
15
clear depth 1.0
16
clear
17
enable GL_DEPTH_TEST
18
draw rect -1 -1 2 2
19
probe depth 0 0 1.0
20
probe depth 9 0 1.0
21
probe depth 10 0 0.5
22
probe depth 11 0 0.5