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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.20
/
compiler
/
unused-const-array.shader_test
blob
c3459a1cd8db0f4b5d28d07418eb004296c91758
1
# Test declaring an unused const array to exercise a Mesa GLSL compiler bug.
2
[require]
3
GLSL >= 1.20
4
5
[vertex shader]
6
void
7
main()
8
{
9
gl_Position = gl_Vertex;
10
}
11
12
13
[fragment shader]
14
15
const int unused_array[1] = int[1](1);
16
17
void
18
main()
19
{
20
gl_FragColor = vec4(0, 1, 0, 1);
21
}
22
23
24
[test]
25
draw rect -1 -1 2 2
26
probe all rgba 0.0 1.0 0.0 1.0