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-1.20: move a bunch of shaders to the glsl-1.20 dir
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
execution
/
glsl-fs-array-redeclaration.shader_test
blob
37950c36fa724964e7eb19e514822919ca62710a
1
#This test reproduces Mesa bug 34374.
2
[require]
3
GLSL >= 1.20
4
5
[vertex shader]
6
void main()
7
{
8
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
9
}
10
11
[fragment shader]
12
#version 120
13
void main()
14
{
15
float a[];
16
float a[] = float[](0,1);
17
if (a[1] == 1)
18
gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
19
else
20
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
21
}
22
23
[test]
24
draw rect -1 -1 2 2
25
probe all rgb 0.0 1.0 0.0