[Piglit] [PATCH] arb_gpu_shader_fp64/ssbo: add another vertex ssbo check.
Alejandro Piñeiro
apinheiro at igalia.com
Fri Mar 9 14:02:47 UTC 2018
Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>
On 09/03/18 06:17, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This adds another checks for vertex ssbos
> ---
> tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-ssbo.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-ssbo.c b/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-ssbo.c
> index bb287f5..509d4e0 100644
> --- a/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-ssbo.c
> +++ b/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-ssbo.c
> @@ -83,6 +83,8 @@ piglit_init(int argc, char **argv)
> {
> GLuint buffer, vertexBuffer;
> double ssbo_values[SSBO_SIZE] = {0};
> + GLint num_vertex_ssbo;
> +
> // Vertex data
> static const GLfloat vertexData[4 * 3] = {
> -1.0f, -1.0f, -1.0f,
> @@ -94,6 +96,9 @@ piglit_init(int argc, char **argv)
> piglit_require_extension("GL_ARB_shader_storage_buffer_object");
> piglit_require_GLSL_version(400);
>
> + glGetIntegerv(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, &num_vertex_ssbo);
> + if (num_vertex_ssbo < 1)
> + piglit_report_result(PIGLIT_SKIP);
> prog = piglit_build_simple_program(vs_source, fs_source);
> glUseProgram(prog);
>
More information about the Piglit
mailing list