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-deadcode-call.shader_test
blob
c7b24807645b43375102d607970fd8f7cf93ba3a
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
12
vec4 color;
13
14
float func()
15
{
16
color = vec4(0.0, 1.0, 0.0, 0.0);
17
return 0.0;
18
}
19
20
void main()
21
{
22
float f;
23
color = vec4(1.0, 0.0, 0.0, 0.0);
24
f = func();
25
gl_FragColor = color;
26
}
27
28
[test]
29
draw rect -1 -1 2 2
30
probe rgb 1 1 0.0 1.0 0.0