[Piglit] [PATCH] arb_shader_storage_buffer_object: add memory qualifers test
Tapani Pälli
tapani.palli at intel.com
Thu Aug 13 00:57:52 PDT 2015
Test checks that parser is able to deal with memory qualifiers given
to shader storage block.
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
---
.../preprocessor/memory-qualifiers.vert | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 tests/spec/arb_shader_storage_buffer_object/preprocessor/memory-qualifiers.vert
diff --git a/tests/spec/arb_shader_storage_buffer_object/preprocessor/memory-qualifiers.vert b/tests/spec/arb_shader_storage_buffer_object/preprocessor/memory-qualifiers.vert
new file mode 100644
index 0000000..f996cee
--- /dev/null
+++ b/tests/spec/arb_shader_storage_buffer_object/preprocessor/memory-qualifiers.vert
@@ -0,0 +1,12 @@
+// [config]
+// expect_result: pass
+// glsl_version: 3.30
+// require_extensions: GL_ARB_shader_storage_buffer_object
+// [end config]
+
+#version 330
+#extension GL_ARB_shader_storage_buffer_object: require
+coherent restrict volatile buffer Buffer {
+ vec4 foo;
+} buf;
+int foo(void) { return 1; }
--
2.1.0
More information about the Piglit
mailing list