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.10
/
linker
/
global-initializer-unmatched-expression.shader_test
blob
6c5940e484180659a4105882ba18dca9a53d1eb8
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
uniform float angle;
6
uniform float scale;
7
float global_variable = cos(angle) * scale;
8
9
float function(void)
10
{
11
return global_variable;
12
}
13
14
[vertex shader]
15
uniform float angle;
16
uniform float scale;
17
float global_variable = scale * sin(angle);
18
19
float function(void);
20
21
void main()
22
{
23
gl_Position = gl_Vertex * global_variable * function();
24
}
25
26
[test]
27
link error