[Piglit] [PATCH] arb_shader_storage_buffer_object: Add compiler test for shared layout qualifier

Samuel Iglesias Gonsálvez siglesias at igalia.com
Thu Nov 12 07:55:17 PST 2015


It verifies the regression added by Mesa's 8b28b35 commit.

Tested on NVIDIA proprietary driver version 352.55.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias at igalia.com>
---
 .../compiler/shared-layout-qualifier.frag              | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 tests/spec/arb_shader_storage_buffer_object/compiler/shared-layout-qualifier.frag

diff --git a/tests/spec/arb_shader_storage_buffer_object/compiler/shared-layout-qualifier.frag b/tests/spec/arb_shader_storage_buffer_object/compiler/shared-layout-qualifier.frag
new file mode 100644
index 0000000..207a23c
--- /dev/null
+++ b/tests/spec/arb_shader_storage_buffer_object/compiler/shared-layout-qualifier.frag
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 1.30
+// require_extensions: GL_ARB_shader_storage_buffer_object GL_ARB_uniform_buffer_object GL_ARB_compute_shader
+// [end config]
+
+#version 130
+#extension GL_ARB_shader_storage_buffer_object: require
+#extension GL_ARB_uniform_buffer_object: require
+#extension GL_ARB_compute_shader: require
+
+layout (shared) buffer ssbo {
+	float a;
+};
+
+void foo(void) {
+	a = 1.0;
+}
-- 
2.5.0



More information about the Piglit mailing list