[Piglit] [PATCH 1/2] glsl-1.30: Add tests for signed-to-unsigned constructors and vice-versa
Ian Romanick
idr at freedesktop.org
Tue Apr 19 13:10:34 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
On current Mesa, some of these cases just fail. Some fail with
assertion failures.
Reported-by: Bryan Cain <bryancain3 at gmail.com>
---
.../compiler/basic-types/ctor-int-uint.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-ivec2-uvec2.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-ivec3-uvec3.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-ivec4-uvec4.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-uint-int.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-uvec2-ivec2.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-uvec3-ivec3.vert | 14 ++++++++++++++
.../compiler/basic-types/ctor-uvec4-ivec4.vert | 14 ++++++++++++++
8 files changed, 112 insertions(+), 0 deletions(-)
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-int-uint.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec2-uvec2.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec3-uvec3.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec4-uvec4.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-uint-int.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec2-ivec2.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec3-ivec3.vert
create mode 100644 tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec4-ivec4.vert
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-int-uint.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-int-uint.vert
new file mode 100644
index 0000000..ae9aa82
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-int-uint.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ uint x = 5u;
+ int y = int(x);
+
+ gl_Position = vec4(x, y, x, y);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec2-uvec2.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec2-uvec2.vert
new file mode 100644
index 0000000..36f9c91
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec2-uvec2.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ uvec2 x = uvec2(5);
+ ivec2 y = ivec2(x);
+
+ gl_Position = vec4(x.xy, y.xy);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec3-uvec3.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec3-uvec3.vert
new file mode 100644
index 0000000..51b1de5
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec3-uvec3.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ uvec3 x = uvec3(5);
+ ivec3 y = ivec3(x);
+
+ gl_Position = vec4(x.xy, y.xy);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec4-uvec4.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec4-uvec4.vert
new file mode 100644
index 0000000..4e43dbb
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-ivec4-uvec4.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ uvec4 x = uvec4(5);
+ ivec4 y = ivec4(x);
+
+ gl_Position = vec4(y);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-uint-int.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uint-int.vert
new file mode 100644
index 0000000..43f977d
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uint-int.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ int x = 5;
+ uint y = uint(x);
+
+ gl_Position = vec4(x, y, x, y);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec2-ivec2.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec2-ivec2.vert
new file mode 100644
index 0000000..18b5218
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec2-ivec2.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ ivec2 x = ivec2(5);
+ uvec2 y = uvec2(x);
+
+ gl_Position = vec4(x.xy, y.xy);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec3-ivec3.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec3-ivec3.vert
new file mode 100644
index 0000000..9b7e032
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec3-ivec3.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ ivec3 x = ivec3(5);
+ uvec3 y = uvec3(x);
+
+ gl_Position = vec4(x.xy, y.xy);
+}
diff --git a/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec4-ivec4.vert b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec4-ivec4.vert
new file mode 100644
index 0000000..5fca1e5
--- /dev/null
+++ b/tests/spec/glsl-1.30/compiler/basic-types/ctor-uvec4-ivec4.vert
@@ -0,0 +1,14 @@
+/* [config]
+ * expect_result: pass
+ * glsl_version: 1.30
+ * [end config]
+ */
+#version 130
+
+void main()
+{
+ ivec4 x = ivec4(5);
+ uvec4 y = uvec4(x);
+
+ gl_Position = vec4(y);
+}
--
1.7.4
More information about the Piglit
mailing list