[Piglit] [PATCH 11/14] ext_unpack_subimage: fix for GLES 3.0

Marek Olšák maraeo at gmail.com
Mon Apr 13 11:28:11 PDT 2015


From: Daniel Kurtz <djkurtz at chromium.org>

GLES 3.0 has support for GL_EXT_unpack_subimage built in, so an
implementation does not need to advertise support for the extension.
So, we must also check for GL ES 3.0 context when determining whether the
extension is supported or not.

Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
 tests/spec/ext_unpack_subimage/ext_unpack_subimage.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/spec/ext_unpack_subimage/ext_unpack_subimage.c b/tests/spec/ext_unpack_subimage/ext_unpack_subimage.c
index e65f4be..f1acbb5 100644
--- a/tests/spec/ext_unpack_subimage/ext_unpack_subimage.c
+++ b/tests/spec/ext_unpack_subimage/ext_unpack_subimage.c
@@ -103,7 +103,8 @@ piglit_display(void)
 	pass = GL_TRUE;
 
 	extension_supported =
-		piglit_is_extension_supported("GL_EXT_unpack_subimage");
+		piglit_is_extension_supported("GL_EXT_unpack_subimage") ||
+		(piglit_is_gles() && piglit_get_gl_version() >= 3);
 
 	expected_error = extension_supported ? GL_NO_ERROR : GL_INVALID_ENUM;
 
-- 
2.1.0



More information about the Piglit mailing list