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-fs-implicit-array-size-01.shader_test
blob
ffa93725b0d56927a2b14f0cf280689a858a3e19
1
[require]
2
# This test reproduces Mesa bugzilla #33219.
3
GLSL >= 1.10
4
5
[fragment shader]
6
float a[];
7
void myfunc()
8
{
9
a[5] = 0.0;
10
gl_FragColor = vec4(a[5], 0, 0, 1.0);
11
}
12
13
[fragment shader]
14
float a[];
15
void myfunc();
16
void main()
17
{
18
myfunc();
19
}
20
21
[test]
22
draw rect -1 -1 2 2
23
probe all rgba 0 0 0 1.0