From: Daniel Kurtz <[email protected]>

EGL_SYNC_TYPE_KHR is not a valid fence type; the correct error code for
this is actually EGL_BAD_ATTRIBUTE, not EGL_BAD_MATCH.

However, the test is trying to test the 'no context' condition, which
means it should use a valid fence type: EGL_SYNC_FENCE_KHR

Signed-off-by: Daniel Kurtz <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
---
 tests/egl/spec/egl_khr_fence_sync/egl_khr_fence_sync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 04f8dfe..0f443c6 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
@@ -540,7 +540,7 @@ test_eglCreateSyncKHR_no_current_context(void *test_data)
        }
        eglMakeCurrent(g_dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
 
-       sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_TYPE_KHR, NULL);
+       sync = peglCreateSyncKHR(g_dpy, EGL_SYNC_FENCE_KHR, NULL);
        if (sync != EGL_NO_SYNC_KHR) {
                piglit_loge("eglCreateSyncKHR() succeeded when no context was "
                          "current");
-- 
2.1.0

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to