[Piglit] [PATCH] asmparsertest: add new SWZ test to exercise Mesa bug/assertion
Brian Paul
brianp at vmware.com
Tue Sep 16 14:20:03 PDT 2014
The Mesa program optimizer was failing some assertions because of
the SWZ 0, 1 terms.
---
tests/all.py | 1 +
tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt | 8 ++++++++
2 files changed, 9 insertions(+)
create mode 100644 tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt
diff --git a/tests/all.py b/tests/all.py
index 226338e..41376a7 100644
--- a/tests/all.py
+++ b/tests/all.py
@@ -3807,6 +3807,7 @@ add_asmparsertest('ARBfp1.0', 'swz-04.txt')
add_asmparsertest('ARBfp1.0', 'swz-05.txt')
add_asmparsertest('ARBfp1.0', 'swz-06.txt')
add_asmparsertest('ARBfp1.0', 'swz-07.txt')
+add_asmparsertest('ARBfp1.0', 'swz-08.txt')
add_asmparsertest('ARBfp1.0', 'txd-01.txt')
add_asmparsertest('ARBfp1.0', 'txd-02.txt')
add_asmparsertest('ARBfp1.0', 'txd-03.txt')
diff --git a/tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt b/tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt
new file mode 100644
index 0000000..cddd351
--- /dev/null
+++ b/tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt
@@ -0,0 +1,8 @@
+!!ARBfp1.0
+# PASS
+TEMP R0;
+TEX R0, fragment.texcoord, texture[0], 2D;
+SUB R0, {1,1,1,1}, R0;
+SWZ result.color, R0, 0, 1, 0, 1;
+END
+
--
1.7.10.4
More information about the Piglit
mailing list