diff options
author | Brian Paul <brianp@vmware.com> | 2014-04-03 11:54:14 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2014-04-03 19:30:28 -0600 |
commit | f8a1efa8ae73da1915bb1887cb72c3752806a477 (patch) | |
tree | 345c6e450d6a2eed263b447e5e0992c179813969 /tests/fbo | |
parent | 110d8dc29559f9feca422b721fee42b284671d3a (diff) |
fbo-generatemipmap-formats: skip integer textures
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.
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'tests/fbo')
-rw-r--r-- | tests/fbo/fbo-generatemipmap-formats.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/fbo/fbo-generatemipmap-formats.c b/tests/fbo/fbo-generatemipmap-formats.c index 666030fd4..8c171888b 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); |