diff options
author | Daniel Kurtz <djkurtz@chromium.org> | 2014-10-15 19:37:08 +0800 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-04-22 14:03:28 +0200 |
commit | 552e00b1744af27930e65c355d510390fbcf53d4 (patch) | |
tree | eded01be7d6393965b347d388ddb02a393ea915d /tests/egl | |
parent | 455c36722337b6c736ff763af82588f4b5386122 (diff) |
egl_khr_fence_sync: remove invalid_flag test
AFAICT there is nothing in the spec [0] that says that EGL should return
EGL_BAD_PARAMETER if flags is 0x8000.
[0] https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_fence_sync.txt
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'tests/egl')
-rw-r--r-- | tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c index e6447bc4e..e7b4b315f 100644 --- a/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c +++ b/tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c @@ -672,52 +672,6 @@ cleanup: } /** - * Verify that glClientWaitSyncKHR emits correct error when given invalid flag. - * - * From the EGL_KHR_fence_sync spec: - * - * Accepted in the <flags> parameter of eglClientWaitSyncKHR: - * - * EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 - */ -static enum piglit_result -test_eglClientWaitSyncKHR_invalid_flag(void *test_data) -{ - enum piglit_result result = PIGLIT_PASS; - EGLSyncKHR sync = 0; - EGLint wait_status = 0; - EGLint invalid_flag = 0x8000; - - result = test_setup(); - if (result != PIGLIT_PASS) { - return result; - } - - sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_FENCE_KHR, NULL); - if (sync == EGL_NO_SYNC_KHR) { - piglit_loge("eglCreateSyncKHR(EGL_SYNC_FENCE_KHR) failed"); - result = PIGLIT_FAIL; - goto cleanup; - } - - /* Use timeout=0 so that eglClientWaitSyncKHR immediately returns. */ - wait_status = peglClientWaitSyncKHR(g_dpy, sync, invalid_flag, 0); - if (wait_status != EGL_FALSE) { - piglit_loge("eglClientWaitSyncKHR succeeded when given invalid " - "flag 0x%x", invalid_flag); - result = PIGLIT_FAIL; - } - if (!piglit_check_egl_error(EGL_BAD_PARAMETER)) { - piglit_loge("eglClientWaitSyncKHR emitted wrong error"); - result = PIGLIT_FAIL; - } - -cleanup: - test_cleanup(sync, &result); - return result; -} - -/** * Verify that eglClientWaitSyncKHR() correctly handles zero timeout before and * after glFinish(). * @@ -1350,11 +1304,6 @@ static const struct piglit_subtest subtests[] = { test_eglGetSyncAttribKHR_sync_status, }, { - "eglClientWaitSyncKHR_invalid_flag", - "eglClientWaitSyncKHR_invalid_flag", - test_eglClientWaitSyncKHR_invalid_flag, - }, - { "eglClientWaitSyncKHR_zero_timeout", "eglClientWaitSyncKHR_zero_timeout", test_eglClientWaitSyncKHR_zero_timeout, |