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-array-bounds: set out-of-bounds array index inside shader
[piglit.git]
/
tests
/
shaders
/
glsl-fs-implicit-array-size-03.shader_test
blob
4141afaa479ad35748ace40ea2508d03b78422b5
1
[require]
2
# This test reproduces Mesa bugzilla #34198.
3
GLSL >= 1.20
4
5
[fragment shader]
6
void myfunc()
7
{
8
float a[];
9
10
a[0] = 1.0;
11
gl_FragColor = vec4(0.0, a[0], 0.0, 1.0);
12
}
13
14
void main()
15
{
16
myfunc();
17
}
18
19
[test]
20
draw rect -1 -1 2 2
21
probe all rgba 0 1.0 0 1.0