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-opt-0-cmp-xy.shader_test
blob
32bc9c2a9dd304cd217c0f3683a091cd30dc1228
1
/* Test (0 cmp x+y) optimization. */
2
3
[require]
4
GLSL >= 1.10
5
6
[vertex shader passthrough]
7
8
[fragment shader]
9
10
uniform float a;
11
12
void main()
13
{
14
if (0.0 >= (a - 1.0))
15
gl_FragColor = vec4(0, 1, 0, 1);
16
else
17
gl_FragColor = vec4(1, 0, 0, 1);
18
}
19
20
[test]
21
uniform float a 0
22
draw rect -1 -1 1 2
23
uniform float a 2
24
draw rect 0 -1 1 2
25
probe rgb 125 0 1.0 0.0 0.0
26
probe rgb 0 0 0.0 1.0 0.0