[Piglit] [PATCH 3/4] egl_khr_create_context: Use PIGLIT_DISPATCH_ES* when possible.

Matt Turner mattst88 at gmail.com
Fri Jul 26 16:34:35 PDT 2013


---
 tests/egl/spec/egl_khr_create_context/default-major-version-gles.c | 1 +
 tests/egl/spec/egl_khr_create_context/default-minor-version-gles.c | 7 ++++++-
 tests/egl/spec/egl_khr_create_context/valid-attribute-empty-gles.c | 1 +
 tests/egl/spec/egl_khr_create_context/valid-attribute-null-gles.c  | 1 +
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/tests/egl/spec/egl_khr_create_context/default-major-version-gles.c b/tests/egl/spec/egl_khr_create_context/default-major-version-gles.c
index da392e9..00c28d1 100644
--- a/tests/egl/spec/egl_khr_create_context/default-major-version-gles.c
+++ b/tests/egl/spec/egl_khr_create_context/default-major-version-gles.c
@@ -60,6 +60,7 @@ int main(int argc, char **argv)
 		piglit_report_result(PIGLIT_FAIL);
 	}
 
+	/* FINISHME: Use PIGLIT_DISPATCH_ES1 when implemented. */
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
 
 	version_string = (char *) glGetString(GL_VERSION);
diff --git a/tests/egl/spec/egl_khr_create_context/default-minor-version-gles.c b/tests/egl/spec/egl_khr_create_context/default-minor-version-gles.c
index d7db749..6101ad7 100644
--- a/tests/egl/spec/egl_khr_create_context/default-minor-version-gles.c
+++ b/tests/egl/spec/egl_khr_create_context/default-minor-version-gles.c
@@ -64,7 +64,12 @@ int main(int argc, char **argv)
 		piglit_report_result(PIGLIT_FAIL);
 	}
 
-	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
+	if (attribs[1] == 1) {
+		/* FINISHME: Use PIGLIT_DISPATCH_ES1 when implemented. */
+		piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
+	} else if (attribs[1] == 2) {
+		piglit_dispatch_default_init(PIGLIT_DISPATCH_ES2);
+	}
 
 	version_string = (char *) glGetString(GL_VERSION);
 
diff --git a/tests/egl/spec/egl_khr_create_context/valid-attribute-empty-gles.c b/tests/egl/spec/egl_khr_create_context/valid-attribute-empty-gles.c
index 5d631e6..1a878a8 100644
--- a/tests/egl/spec/egl_khr_create_context/valid-attribute-empty-gles.c
+++ b/tests/egl/spec/egl_khr_create_context/valid-attribute-empty-gles.c
@@ -54,6 +54,7 @@ int main(int argc, char **argv)
 		piglit_report_result(PIGLIT_FAIL);
 	}
 
+	/* FINISHME: Use PIGLIT_DISPATCH_ES1 when implemented. */
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
 
 	version_string = (char *) glGetString(GL_VERSION);
diff --git a/tests/egl/spec/egl_khr_create_context/valid-attribute-null-gles.c b/tests/egl/spec/egl_khr_create_context/valid-attribute-null-gles.c
index 4816976..2042283 100644
--- a/tests/egl/spec/egl_khr_create_context/valid-attribute-null-gles.c
+++ b/tests/egl/spec/egl_khr_create_context/valid-attribute-null-gles.c
@@ -51,6 +51,7 @@ int main(int argc, char **argv)
 		piglit_report_result(PIGLIT_FAIL);
 	}
 
+	/* FINISHME: Use PIGLIT_DISPATCH_ES1 when implemented. */
 	piglit_dispatch_default_init(PIGLIT_DISPATCH_GL);
 
 	version_string = (char *) glGetString(GL_VERSION);
-- 
1.8.1.5



More information about the Piglit mailing list