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
/
linker
/
array-initializers-1.shader_test
blob
911acd466a282668a3ee2be1b73747dbfa5f814c
1
# Demonstrates a crash in mesa.
2
3
[require]
4
GLSL >= 1.20
5
6
[vertex shader]
7
#version 120
8
9
const int xs[] = int[](1,2,3);
10
const int ys[] = int[](1,2);
11
12
uniform int n;
13
14
void main()
15
{
16
gl_Position = vec4(xs[n]+ys[n], 0, 0, 1);
17
}
18
19
[test]
20
link success