diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2014-10-17 00:57:49 +0800 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-04-22 14:03:28 +0200 |
commit | e90a0f1e90e0c526bb90b3b0ff8a31732bd4c6ea (patch) | |
tree | 32fb5efb381cb0bbfd769f7b6ee9a5b9fd601656 /tests/egl | |
parent | 552e00b1744af27930e65c355d510390fbcf53d4 (diff) |
egl_khr_create_context: use ES1 dispatch
Using ES1 dispatch works now, so let's use it for gles tests.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'tests/egl')
5 files changed, 5 insertions, 14 deletions
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 a6af4b1f9..03e16a960 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,8 +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); + piglit_dispatch_default_init(PIGLIT_DISPATCH_ES1); 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 e35526ad0..4fb8e697d 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 @@ -65,8 +65,7 @@ int main(int argc, char **argv) } if (attribs[1] == 1) { - /* FINISHME: Use PIGLIT_DISPATCH_ES1 when implemented. */ - piglit_dispatch_default_init(PIGLIT_DISPATCH_GL); + piglit_dispatch_default_init(PIGLIT_DISPATCH_ES1); } else if (attribs[1] == 2) { piglit_dispatch_default_init(PIGLIT_DISPATCH_ES2); } 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 f370112c2..b1766cfd1 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,8 +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); + piglit_dispatch_default_init(PIGLIT_DISPATCH_ES1); 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 4759702dc..a4b5fdeff 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,8 +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); + piglit_dispatch_default_init(PIGLIT_DISPATCH_ES1); version_string = (char *) glGetString(GL_VERSION); diff --git a/tests/egl/spec/egl_khr_create_context/valid-flag-debug.c b/tests/egl/spec/egl_khr_create_context/valid-flag-debug.c index 27033357d..31f73980f 100644 --- a/tests/egl/spec/egl_khr_create_context/valid-flag-debug.c +++ b/tests/egl/spec/egl_khr_create_context/valid-flag-debug.c @@ -120,12 +120,7 @@ try_debug_flag(EGLenum context_api, EGLenum context_bit) dispatch_api = PIGLIT_DISPATCH_GL; break; case EGL_OPENGL_ES_BIT: - /* Piglit doesn't yet have ES1 dispatch, so just initialize - * with ES2 dispatch. This should be safe because the only - * GL functions called by this test are glGetString() and - * glGetIntegerv(). - */ - dispatch_api = PIGLIT_DISPATCH_ES2; + dispatch_api = PIGLIT_DISPATCH_ES1; break; case EGL_OPENGL_ES2_BIT: case EGL_OPENGL_ES3_BIT_KHR: |