From 90ac1beab2f2020295d1fa0afaf0eb2995e483e3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 3 Sep 2009 14:01:54 -0700 Subject: 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. --- tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt | 4 ++++ tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt | 5 +++++ tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt | 5 +++++ tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt | 4 ++++ tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt | 6 ++++++ 5 files changed, 24 insertions(+) create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/cos-01.txt create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/cos-02.txt create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/cos-03.txt create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/cos-04.txt create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/cos-05.txt (limited to 'tests/asmparsertest') 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 -- cgit v1.2.3