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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to