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-array-bounds: set out-of-bounds array index inside shader
[piglit.git]
/
tests
/
shaders
/
glsl-copy-propagation-self-2.shader_test
blob
344bf96825db2851146fa83b3b492b7423b36838
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform vec4 arg0;
12
uniform float arg1;
13
14
void main() {
15
vec4 R0;
16
17
R0.xyzw = arg0 + arg1;
18
R0.xyzw = R0.wwwx;
19
gl_FragColor.xyzw = clamp(R0.xyzw, 0.0, 1.0);
20
}
21
22
[test]
23
uniform vec4 arg0 0.0 0.0 0.0 0.5
24
uniform float arg1 0.0
25
draw rect -1 -1 2 2
26
probe all rgba 0.5 0.5 0.5 0.0