[Piglit] [PATCH] array-index-as-uint-02: Move test to proper location
tiffany
tiffany at stormbit.net
Wed Sep 3 12:32:37 PDT 2014
---
tests/glslparsertest/glsl2/array-index.frag | 19 -------------------
.../array-index-as-uint-02.frag | 19 +++++++++++++++++++
2 files changed, 19 insertions(+), 19 deletions(-)
delete mode 100644 tests/glslparsertest/glsl2/array-index.frag
create mode 100644 tests/spec/glsl-1.30/compiler/structure-and-array-operations/array-index-as-uint-02.frag
diff --git a/tests/glslparsertest/glsl2/array-index.frag b/tests/glslparsertest/glsl2/array-index.frag
deleted file mode 100644
index 41af438..0000000
--- a/tests/glslparsertest/glsl2/array-index.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-/* From page 44 (page 50 of the PDF) of the GLSL 1.30 spec:
- *
- * "Array elements are accessed using an expression whose type is int or uint."
- *
- * [config]
- * expect_result: pass
- * glsl_version: 1.30
- * [end config]
- */
-#version 130
-flat in uint i;
-out vec4 color;
-
-const float a[4] = float[4](0.0, 1.0, 2.0, 3.0);
-
-void main()
-{
- color = vec4(a[i]);
-}
diff --git a/tests/spec/glsl-1.30/compiler/structure-and-array-operations/array-index-as-uint-02.frag b/tests/spec/glsl-1.30/compiler/structure-and-array-operations/array-index-as-uint-02.frag
new file mode 100644
index 0000000..41af438
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/structure-and-array-operations/array-index-as-uint-02.frag
@@ -0,0 +1,19 @@
+/* From page 44 (page 50 of the PDF) of the GLSL 1.30 spec:
+ *
+ * "Array elements are accessed using an expression whose type is int or uint."
+ *
+ * [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+flat in uint i;
+out vec4 color;
+
+const float a[4] = float[4](0.0, 1.0, 2.0, 3.0);
+
+void main()
+{
+ color = vec4(a[i]);
+}
--
2.1.0
More information about the Piglit
mailing list