[Piglit] [PATCH 2/2] arb_shader_subroutine: multiple subroutine qualifiers for a single function
Timothy Arceri
timothy.arceri at collabora.com
Sun Nov 1 16:02:20 PST 2015
Test results:
Nvidia GeForce 840M - NVIDIA 352.41: pass
Mesa - Segfault
---
.../compiler/multiple-subroutine-qualifiers.vert | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-qualifiers.vert
diff --git a/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-qualifiers.vert b/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-qualifiers.vert
new file mode 100644
index 0000000..bf5452b
--- /dev/null
+++ b/tests/spec/arb_shader_subroutine/compiler/multiple-subroutine-qualifiers.vert
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_shader_subroutine
+// [end config]
+//
+// Test for compile error when there are multiple subroutine qualifiers for a
+// single function.
+
+#version 150
+#extension GL_ARB_shader_subroutine: require
+
+subroutine void func_type();
+
+/* A subroutine matching the above type */
+subroutine (func_type) subroutine (func_type) void f() {}
--
2.4.3
More information about the Piglit
mailing list