[Piglit] [PATCH 2/4] copyteximage: add ARB_depth_texture dependencies
Ilia Mirkin
imirkin at alum.mit.edu
Thu Mar 13 09:07:02 PDT 2014
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
tests/texturing/copyteximage.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/texturing/copyteximage.c b/tests/texturing/copyteximage.c
index 0afcba5..85b2215 100644
--- a/tests/texturing/copyteximage.c
+++ b/tests/texturing/copyteximage.c
@@ -184,8 +184,13 @@ supported_format(GLenum format)
case GL_COMPRESSED_RED:
case GL_COMPRESSED_RG:
return piglit_is_extension_supported("GL_ARB_texture_rg");
+ case GL_DEPTH_COMPONENT:
+ case GL_DEPTH_COMPONENT16:
+ case GL_DEPTH_COMPONENT24:
+ return piglit_is_extension_supported("GL_ARB_depth_texture");
case GL_DEPTH24_STENCIL8:
- return piglit_is_extension_supported("GL_EXT_packed_depth_stencil");
+ return piglit_is_extension_supported("GL_EXT_packed_depth_stencil") &&
+ piglit_is_extension_supported("GL_ARB_depth_texture");
case GL_DEPTH_COMPONENT32F:
case GL_DEPTH32F_STENCIL8:
return piglit_is_extension_supported("GL_ARB_depth_buffer_float");
--
1.8.3.2
More information about the Piglit
mailing list