[Piglit] [PATCH 1/3] arb_get_texture_sub_image: fix expected error when querying a level which hasn't been explicitly defined

Arthur Huillet arthur.huillet at free.fr
Wed Mar 28 15:41:00 UTC 2018


I'm confused why the test is passing a bad enum when its purpose seems 
to be to test a non-existent level.
In any case, your change looks correct to me.

Reviewed-by: Arthur Huillet <ahuillet at nvidia.com>


On 28.03.2018 17:15, Anthony Pesch wrote:
> From: Anthony Pesch <apesch at nvidia.com>
> 
> Change expected error from INVALID_OPERATION to INVALID_VALUE when 
> querying
> a level which hasn't been explicitly defined. This is a valid 
> operation, the
> error set should be due to the requested width and height being greater 
> than
> the default width and height of zero.
> ---
>  tests/spec/arb_get_texture_sub_image/errors.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/spec/arb_get_texture_sub_image/errors.c
> b/tests/spec/arb_get_texture_sub_image/errors.c
> index 34fec4a95..57875fa6a 100644
> --- a/tests/spec/arb_get_texture_sub_image/errors.c
> +++ b/tests/spec/arb_get_texture_sub_image/errors.c
> @@ -200,7 +200,7 @@ test_invalid_values(void)
>  			     8, 8, 1, /* size */
>  			     GL_RGBA, GL_FLOAT,  /* bad enum */
>  			     sizeof(buffer), buffer);
> -	if (!piglit_check_gl_error(GL_INVALID_OPERATION))
> +	if (!piglit_check_gl_error(GL_INVALID_VALUE))
>  		pass = false;
> 
>  	/* Test getting invalid offset */

-- 
A. Huillet


More information about the Piglit mailing list