[Piglit] [PATCH v2 1/5] fbo-storage-formats: Fix reporting of invalid formats.

Chad Versace chad.versace at linux.intel.com
Tue Sep 3 11:17:56 PDT 2013


On 08/23/2013 11:51 AM, Kenney Phillis wrote:
> Currently Invalid formats is reported from the formats data structure.
> This is incorrect because the invalid formats set should not use this
> system.
> ---
>   tests/fbo/fbo-storage-formats.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/fbo/fbo-storage-formats.c b/tests/fbo/fbo-storage-formats.c
> index 3b82517..bbe286c 100644
> --- a/tests/fbo/fbo-storage-formats.c
> +++ b/tests/fbo/fbo-storage-formats.c
> @@ -209,7 +209,7 @@ test(void)
>
>   	/* test formats that should fail */
>   	for (i = 0; i < ARRAY_SIZE(invalid_formats); i++) {
> -		const char *name = piglit_get_gl_enum_name(formats[i].format);
> +		const char *name = piglit_get_gl_enum_name(invalid_formats[i]);
>
>   		glRenderbufferStorageEXT(GL_RENDERBUFFER_EXT,
>   					 invalid_formats[i],
>

I committed this patch to master. Thanks.


More information about the Piglit mailing list