[Piglit] [PATCH 1/3] egl: Check for EGL_EXT_device_base

James Jones jajones at nvidia.com
Wed Sep 7 20:27:26 UTC 2016


EGL_EXT_device_base is equivalent to
EGL_EXT_device_query && EGL_EXT_device_enumeration

Signed-off-by: James Jones <jajones at nvidia.com>
---
 .../spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c  | 8 +++++---
 tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c        | 6 ++++--
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c b/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
index ce717bf..0d29a6b 100644
--- a/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
+++ b/tests/egl/spec/egl_ext_device_enumeration/egl_ext_device_enumeration.c
@@ -38,10 +38,12 @@ main(void)
 	const char *client_exts = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
 	bool has_client_ext =
 		client_exts &&
-		piglit_is_extension_in_string(client_exts,
+		((piglit_is_extension_in_string(client_exts,
 			"EGL_EXT_device_query") &&
-		piglit_is_extension_in_string(client_exts,
-			"EGL_EXT_device_enumeration");
+		  piglit_is_extension_in_string(client_exts,
+			"EGL_EXT_device_enumeration")) ||
+		 piglit_is_extension_in_string(client_exts,
+			"EGL_EXT_device_base"));
 
 	if (!has_client_ext) {
 		printf("EGL_EXT_device_enumeration not supported\n");
diff --git a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
index 721483f..950abbb 100644
--- a/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
+++ b/tests/egl/spec/egl_ext_device_query/egl_ext_device_query.c
@@ -40,8 +40,10 @@ main(void)
 	const char *client_exts = eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
 	bool has_client_ext =
 		client_exts &&
-		piglit_is_extension_in_string(client_exts,
-			"EGL_EXT_device_query");
+		(piglit_is_extension_in_string(client_exts,
+			"EGL_EXT_device_query") ||
+		 piglit_is_extension_in_string(client_exts,
+			"EGL_EXT_device_base"));
 
 	if (!has_client_ext) {
 		printf("EGL_EXT_device_query not supported\n");
-- 
1.9.1



More information about the Piglit mailing list