[Piglit] [PATCH 1/3] arb_shader_subroutine: Check that subroutine types must actually exist

Chris Forbes chrisf at ijw.co.nz
Sun Aug 10 05:35:37 PDT 2014


Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 .../compiler/subroutine-def-not-declared.vert                 | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 tests/spec/arb_shader_subroutine/compiler/subroutine-def-not-declared.vert

diff --git a/tests/spec/arb_shader_subroutine/compiler/subroutine-def-not-declared.vert b/tests/spec/arb_shader_subroutine/compiler/subroutine-def-not-declared.vert
new file mode 100644
index 0000000..8f3f9f0
--- /dev/null
+++ b/tests/spec/arb_shader_subroutine/compiler/subroutine-def-not-declared.vert
@@ -0,0 +1,11 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// require_extensions: GL_ARB_shader_subroutine
+// [end config]
+
+#version 150
+#extension GL_ARB_shader_subroutine: require
+
+/* There is no subroutine type 'bogus_type' */
+subroutine (bogus_type) void f() {}
-- 
2.0.4



More information about the Piglit mailing list