[Piglit] [PATCH] arb_vertex_type_2_10_10_10: Don't test BGRA if we don't have the ext.
Ilia Mirkin
imirkin at alum.mit.edu
Thu Apr 26 17:26:18 UTC 2018
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Thu, Apr 26, 2018 at 1:17 PM, Eric Anholt <eric at anholt.net> wrote:
> The 2101010 spec says to remove BGRA references if this extension
> isn't present, so don't test them.
> ---
> tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
> index 4c7b199fa22c..e08c79bfc1ff 100644
> --- a/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
> +++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/array_types.c
> @@ -160,6 +160,10 @@ test(int x1, int y1, int x2, int y2, const struct test_info *test)
> GLuint v[3], c[3];
> bool pass;
>
> + if (test->size == GL_BGRA &&
> + !piglit_is_extension_supported("GL_EXT_vertex_array_bgra"))
> + return true;
> +
> printf("testing: %s\n", test->name);
>
> /* vertex positions */
> --
> 2.17.0
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list