Mesa (gallium-0.2): mesa: convert log/exp tests to ARB_v_p

Brian Paul brianp at kemper.freedesktop.org
Wed Oct 29 01:01:55 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: c25adeae18a2cbd2c504210dff289af4764ecaf1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c25adeae18a2cbd2c504210dff289af4764ecaf1

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Tue Oct 28 19:00:25 2008 -0600

mesa: convert log/exp tests to ARB_v_p

---

 progs/vp/exp.txt |    9 +++++----
 progs/vp/log.txt |    9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/progs/vp/exp.txt b/progs/vp/exp.txt
index 601aae7..53ce71d 100644
--- a/progs/vp/exp.txt
+++ b/progs/vp/exp.txt
@@ -1,5 +1,6 @@
-!!VP1.0
-EXP R0, v[COL0].x; 
-ADD o[COL0], R0.z, -R0.w;
-MOV o[HPOS], v[OPOS];
+!!ARBvp1.0
+TEMP R0;
+EXP R0, vertex.color.x;
+SUB result.color, R0.z, R0.w;
+MOV result.position, vertex.position;
 END
diff --git a/progs/vp/log.txt b/progs/vp/log.txt
index 9b04268..6b4e94e 100644
--- a/progs/vp/log.txt
+++ b/progs/vp/log.txt
@@ -1,6 +1,7 @@
-!!VP1.0
-ADD R0, v[COL0], v[COL0];
+!!ARBvp1.0
+TEMP R0;
+ADD R0, vertex.color, vertex.color;
 ADD R0, R0, R0;
-LOG o[COL0], R0.x; 
-MOV o[HPOS], v[OPOS];
+LOG result.color, R0.x; 
+MOV result.position, vertex.position;
 END




More information about the mesa-commit mailing list