summaryrefslogtreecommitdiff
path: root/tests/asmparsertest
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-09-03 14:01:54 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-09-03 14:02:49 -0700
commit90ac1beab2f2020295d1fa0afaf0eb2995e483e3 (patch)
tree6db2b2d7459c9180c819d57b90dc9723b13c4bba /tests/asmparsertest
parent0c3c5348e914a20d7743f457e9058f0afcc3ef89 (diff)
asmparsertests: Add tests for the COS instruction
cos-05.txt also tests the differing behavior of scalar constants between ARB_fragment_program and NV_fragment_program_option.
Diffstat (limited to 'tests/asmparsertest')
-rw-r--r--tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt4
-rw-r--r--tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt5
-rw-r--r--tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt5
-rw-r--r--tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt4
-rw-r--r--tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt6
5 files changed, 24 insertions, 0 deletions
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt b/tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt
new file mode 100644
index 000000000..e372c5c6d
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt
@@ -0,0 +1,4 @@
+!!ARBfp1.0
+
+ COS result.color, fragment.texcoord[0].x;
+ END
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt b/tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt
new file mode 100644
index 000000000..c6764e28a
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt
@@ -0,0 +1,5 @@
+!!ARBfp1.0
+# FAIL
+
+ COS result.color, fragment.texcoord[0];
+ END
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt b/tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt
new file mode 100644
index 000000000..e1427e2f5
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt
@@ -0,0 +1,5 @@
+!!ARBfp1.0
+# FAIL
+
+ COS result.color, 3.14159;
+ END
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt b/tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt
new file mode 100644
index 000000000..3b9b723b9
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt
@@ -0,0 +1,4 @@
+!!ARBfp1.0
+
+ COS result.color, 3.14159.x;
+ END
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt b/tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt
new file mode 100644
index 000000000..30e9481a6
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt
@@ -0,0 +1,6 @@
+!!ARBfp1.0
+# REQUIRE GL_NV_fragment_program_option
+
+ OPTION NV_fragment_program;
+ COS result.color, 3.14159;
+ END