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
/
structure-and-array-operations
/
array-constant-index-negative.vert
blob
3f4ce5c9eb7a55b7ba706906bb4f0e8144eb4520
1
/* [config]
2
* expect_result: fail
3
* glsl_version: 1.20
4
* [end config]
5
*
6
* From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
7
*
8
* "It is also illegal to index an array with a negative constant
9
* expression."
10
*/
11
#version 120
12
13
uniform vec4 [6] an_array;
14
15
void main()
16
{
17
gl_Position = an_array[-1];
18
}