[Piglit] [PATCH 5/5] piglit-vbo: allow int attributes without GL3

Chris Forbes chrisf at ijw.co.nz
Mon Jul 15 03:15:41 PDT 2013


The required entrypoints for this exist in EXT_gpu_shader4 as well.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
 tests/util/piglit-vbo.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/util/piglit-vbo.cpp b/tests/util/piglit-vbo.cpp
index d3d082d..3f9d655 100644
--- a/tests/util/piglit-vbo.cpp
+++ b/tests/util/piglit-vbo.cpp
@@ -208,7 +208,9 @@ vertex_attrib_description::vertex_attrib_description(GLuint prog,
 	 * present.
 	 */
 	if (this->data_type != GL_FLOAT &&
-	    (piglit_is_gles() || piglit_get_gl_version() < 30)) {
+	    (piglit_is_gles() ||
+	    (piglit_get_gl_version() < 30 &&
+		!piglit_is_extension_supported("GL_EXT_gpu_shader4")))) {
 		printf("Test uses glVertexAttribIPointer(),"
 		       " which is unsupported.\n");
 		piglit_report_result(PIGLIT_FAIL);
-- 
1.8.3.2



More information about the Piglit mailing list