[Piglit] [PATCH 2/2] arb_transform_feedback_overflow_query-basic: add any_inverted subtest

Rafael Antognolli rafael.antognolli at intel.com
Mon Jul 31 16:28:13 UTC 2017


This series is

Reviewed-by: Rafael Antognolli <rafael.antognolli at intel.com>

On Mon, Jul 31, 2017 at 11:28:36AM +0200, Nicolai Hähnle wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
> 
> There is a bug in VI+ with conditional render for any-stream overflow
> that depends on whether the condition is inverted or not.
> ---
>  .../arb_transform_feedback_overflow_query/basic.c    | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/tests/spec/arb_transform_feedback_overflow_query/basic.c b/tests/spec/arb_transform_feedback_overflow_query/basic.c
> index 72b32fb..9fb3c0c 100644
> --- a/tests/spec/arb_transform_feedback_overflow_query/basic.c
> +++ b/tests/spec/arb_transform_feedback_overflow_query/basic.c
> @@ -421,6 +421,20 @@ test_overflow_stream_any(void *test_data)
>  }
>  
>  /**
> + * Overflow on stream 1.
> + * Query for overflow on any stream.
> + * inverted = true, expected overflow: true.
> + */
> +static enum piglit_result
> +test_overflow_stream_any_inverted(void *test_data)
> +{
> +	GLuint query_type = GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB;
> +	int array_sizes[] = { 6, 5 };
> +
> +	return run_subtest(2, array_sizes, 0, query_type, true, true, test_data);
> +}
> +
> +/**
>   * No overflow.
>   * Query for overflow on any stream.
>   * inverted = false, expected overflow: false.
> @@ -528,6 +542,12 @@ const struct piglit_subtest overflow_query_subtests[] = {
>  		"conditional_render"
>  	},
>  	{
> +		"arb_transform_feedback_overflow_query-conditional_render_any_inverted",
> +		"arb_transform_feedback_overflow_query-conditional_render_any_inverted",
> +		test_overflow_stream_any_inverted,
> +		"conditional_render"
> +	},
> +	{
>  		"arb_transform_feedback_overflow_query-conditional_render_no_overflow",
>  		"arb_transform_feedback_overflow_query-conditional_render_no_overflow",
>  		test_no_overflow_stream_any,
> -- 
> 2.9.3
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list