[Piglit] [PATCH 1/2] arb_shader_atomic_counters: fix gs support check

Chris Forbes chrisf at ijw.co.nz
Wed Jun 18 14:17:11 PDT 2014


These are both

Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>

On Tue, Jun 17, 2014 at 5:52 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> ---
>
> Not actually an issue on the blob, since it supports ARB_geometry_shader4, but
> Chris Forbes pointed it out. This also works.
>
>  tests/spec/arb_shader_atomic_counters/common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/spec/arb_shader_atomic_counters/common.c b/tests/spec/arb_shader_atomic_counters/common.c
> index 7547d5d..95d809e 100644
> --- a/tests/spec/arb_shader_atomic_counters/common.c
> +++ b/tests/spec/arb_shader_atomic_counters/common.c
> @@ -211,7 +211,7 @@ atomic_counters_supported(GLenum shader_stage)
>                  return n;
>
>          case GL_GEOMETRY_SHADER:
> -                if (piglit_is_extension_supported("GL_ARB_geometry_shader4"))
> +                if (piglit_get_gl_version() >= 32)
>                          glGetIntegerv(GL_MAX_GEOMETRY_ATOMIC_COUNTERS, &n);
>                  return n;
>
> --
> 1.8.5.5
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list