[Piglit] [PATCH] fbo-generatemipmap-formats: skip integer textures

Anuj Phogat anuj.phogat at gmail.com
Thu Apr 3 17:36:10 PDT 2014


On Thu, Apr 3, 2014 at 10:55 AM, Brian Paul <brianp at vmware.com> wrote:
> GL doesn't allow auto mipmap generation for integer textures.
> Skip those formats to avoid hitting an assertion in the piglit
> rgbw texture utility code when using the 'n' key to cycle through
> tests manually.
> ---
>  tests/fbo/fbo-generatemipmap-formats.c |    5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c
> index 666030f..8c17188 100644
> --- a/tests/fbo/fbo-generatemipmap-formats.c
> +++ b/tests/fbo/fbo-generatemipmap-formats.c
> @@ -430,6 +430,11 @@ test_format(const struct format_desc *format, GLenum basetype)
>         int level;
>         GLboolean pass = GL_TRUE;
>
> +       if (basetype == GL_INT) {
> +               printf("Skipping mipmap generation for integer texture.\n");
> +               return GL_TRUE;
> +       }
> +
>         printf("Testing %s%s\n", format->name, tex_width == 256 ? "" : " (NPOT)");
>         tex = create_tex(format->internalformat, format->base_internal_format,
>                          basetype);
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>


More information about the Piglit mailing list