[Piglit] [PATCH 5/8] glsl-1.50: add basic VS / FS interface block compiler tests
Jordan Justen
jordan.l.justen at intel.com
Sun Feb 17 10:31:24 PST 2013
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
.../glsl-1.50/compiler/interface-blocks-basic.frag | 27 ++++++++++++++++++++
.../glsl-1.50/compiler/interface-blocks-basic.vert | 26 +++++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-basic.frag
create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-basic.vert
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-basic.frag b/tests/spec/glsl-1.50/compiler/interface-blocks-basic.frag
new file mode 100644
index 0000000..8cde007
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-basic.frag
@@ -0,0 +1,27 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+in block_without_instance_name {
+ vec4 iface_var;
+};
+
+uniform block_with_instance_name {
+ vec4 iface_var;
+} instance_name_for_iface;
+
+in in_block {
+ smooth in vec4 in_inside_in_block;
+} in_block_instance;
+
+void main()
+{
+ vec4 a = iface_var;
+ a = instance_name_for_iface.iface_var;
+ a = in_block_instance.in_inside_in_block;
+}
+
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-basic.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-basic.vert
new file mode 100644
index 0000000..4c34302
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-basic.vert
@@ -0,0 +1,26 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+
+#version 150
+
+uniform block_without_instance_name {
+ vec4 iface_var;
+};
+
+out block_with_instance_name {
+ vec4 iface_var;
+} instance_name_for_iface;
+
+out out_block {
+ smooth out vec4 out_inside_out_block;
+} out_block_instance;
+
+void main()
+{
+ instance_name_for_iface.iface_var = iface_var;
+ out_block_instance.out_inside_out_block = iface_var;
+}
+
--
1.7.10.4
More information about the Piglit
mailing list