---
 progs/fp/position-frc-integer.txt |    7 +++++++
 progs/fp/position-frc.txt         |    6 ++++++
 progs/fp/position-upper-left.txt  |    7 +++++++
 progs/fp/position.txt             |    2 ++
 4 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 progs/fp/position-frc-integer.txt
 create mode 100644 progs/fp/position-frc.txt
 create mode 100644 progs/fp/position-upper-left.txt

diff --git a/progs/fp/position-frc-integer.txt 
b/progs/fp/position-frc-integer.txt
new file mode 100644
index 0000000..24179ef
--- /dev/null
+++ b/progs/fp/position-frc-integer.txt
@@ -0,0 +1,7 @@
+# expected: black triangle
+# brown means the wrong pixel center convention is being used
+!!ARBfp1.0
+OPTION ARB_fragment_coord_pixel_center_integer;
+MOV result.color, {0}.x;
+FRC result.color.xy, fragment.position;
+END
diff --git a/progs/fp/position-frc.txt b/progs/fp/position-frc.txt
new file mode 100644
index 0000000..6a299f9
--- /dev/null
+++ b/progs/fp/position-frc.txt
@@ -0,0 +1,6 @@
+# expected: brown triangle
+# black means the wrong pixel center convention is being used
+!!ARBfp1.0
+MOV result.color, {0}.x;
+FRC result.color.xy, fragment.position;
+END
diff --git a/progs/fp/position-upper-left.txt b/progs/fp/position-upper-left.txt
new file mode 100644
index 0000000..9049706
--- /dev/null
+++ b/progs/fp/position-upper-left.txt
@@ -0,0 +1,7 @@
+# expected: the yellow vertex is the bottom one
+# if it is the top one, the wrong origin convention is being used
+!!ARBfp1.0
+OPTION ARB_fragment_coord_origin_upper_left;
+MOV result.color, {0}.x;
+MUL result.color.xy, fragment.position, {.005}.x;
+END
diff --git a/progs/fp/position.txt b/progs/fp/position.txt
index 1875897..5e5fac1 100644
--- a/progs/fp/position.txt
+++ b/progs/fp/position.txt
@@ -1,3 +1,5 @@
+# expected: the yellow vertex is the top one
+# if it is the bottom one, the wrong origin convention is being used
 !!ARBfp1.0
 MOV result.color, {0}.x;
 MUL result.color.xy, fragment.position, {.005}.x;
-- 
1.6.3.3


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to