[Piglit] [PATCH] arb_shader_storage_buffer_object: Add compiler test for shared layout qualifier
Tapani Pälli
tapani.palli at intel.com
Thu Nov 12 21:30:36 PST 2015
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 11/12/2015 05:55 PM, Samuel Iglesias Gonsálvez wrote:
> 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;
> +}
>
More information about the Piglit
mailing list