[Piglit] [PATCH 1/7] depthstencil-render-miplevels: Add missing extension checks

Ian Romanick idr at freedesktop.org
Thu Dec 19 11:37:29 PST 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 tests/texturing/depthstencil-render-miplevels.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/texturing/depthstencil-render-miplevels.cpp b/tests/texturing/depthstencil-render-miplevels.cpp
index 6a5b95f..af8f747 100644
--- a/tests/texturing/depthstencil-render-miplevels.cpp
+++ b/tests/texturing/depthstencil-render-miplevels.cpp
@@ -354,6 +354,11 @@ piglit_init(int argc, char **argv)
 		while ((miplevel0_size >> (max_miplevel + 1)) > 0)
 			++max_miplevel;
 	}
+
+	piglit_require_extension("GL_ARB_framebuffer_object");
+	piglit_require_extension("GL_ARB_depth_texture");
+	piglit_require_extension("GL_ARB_texture_non_power_of_two");
+
 	depth_miplevel_data = (float **)calloc(max_miplevel, sizeof(float *));
 	stencil_miplevel_data = (uint8_t **)calloc(max_miplevel,
 						   sizeof(uint8_t *));
-- 
1.8.1.4



More information about the Piglit mailing list