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
/
arb_vertex_program
/
instructions
/
lg2.shader_test
blob
b3a868cbd04331f62bd6d810b1bd541f1ceaa869
1
[require]
2
GL >= 1.3
3
ARB_vertex_program
4
5
[vertex program]
6
!!ARBvp1.0
7
PARAM values = {64.0, 1, 30, 4};
8
PARAM scale = {0.1, 0.1, 0.1, 0.1};
9
MOV result.position, vertex.position;
10
TEMP t;
11
LG2 t.x, values.x;
12
LG2 t.y, values.y;
13
LG2 t.z, values.z;
14
LG2 t.w, values.w;
15
MUL result.color, t, scale;
16
END
17
18
[test]
19
ortho -4 4 -4 4
20
draw rect -0.25 -0.25 0.5 0.5
21
relative probe rgba (0.5, 0.5) (0.6, 0.0, 0.49, 0.2)