nouveau_vieux does not support GL_ARB_depth_texture.
Signed-off-by: Ilia Mirkin <[email protected]>
---
tests/spec/arb_texture_storage/texture-storage.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/spec/arb_texture_storage/texture-storage.c
b/tests/spec/arb_texture_storage/texture-storage.c
index e0006a6..d71cc98 100644
--- a/tests/spec/arb_texture_storage/texture-storage.c
+++ b/tests/spec/arb_texture_storage/texture-storage.c
@@ -464,9 +464,12 @@ test_internal_formats(void)
};
GLuint tex;
bool pass = true;
- int i;
+ int i, formats = ARRAY_SIZE(legal_formats);
+
+ if (!piglit_is_extension_supported("GL_ARB_depth_texture"))
+ formats -= 2;
- for (i = 0; i < ARRAY_SIZE(legal_formats); i++) {
+ for (i = 0; i < formats; i++) {
glGenTextures(1, &tex);
glBindTexture(target, tex);
--
1.8.5.5
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit