[Piglit] [PATCH] arb_texture_storage: allow for depth component formats to be unsupported
Ilia Mirkin
imirkin at alum.mit.edu
Sun Aug 10 10:20:02 PDT 2014
nouveau_vieux does not support GL_ARB_depth_texture.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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
More information about the Piglit
mailing list