mesa: convert log/exp tests to ARB_v_p
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Oct 2008 01:00:25 +0000 (19:00 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 29 Oct 2008 01:00:25 +0000 (19:00 -0600)
progs/vp/exp.txt
progs/vp/log.txt

index 601aae7d7151dc81e2e8246bbe1b987756de6040..53ce71db9653ec809e47b5b7abb0cc4c5ff775bf 100644 (file)
@@ -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
index 9b042684335adf6d82a905ab42ee05ad0aaf2be5..6b4e94ed0ede695a656951770707de5ef9356a57 100644 (file)
@@ -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