[Piglit] [PATCH] EGL_KHR_cl_event2: Clean up gl_extensions array from test_cleanup()

Michel Dänzer michel at daenzer.net
Thu May 12 07:21:37 UTC 2016


From: Michel Dänzer <michel.daenzer at amd.com>

Fixes a crash with multiple OpenCL devices available, due to re-using
the stale gl_extensions array from a previous EGL context.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 tests/cl/interop/egl_khr_cl_event2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/cl/interop/egl_khr_cl_event2.c b/tests/cl/interop/egl_khr_cl_event2.c
index 2039d36..ce5e891 100644
--- a/tests/cl/interop/egl_khr_cl_event2.c
+++ b/tests/cl/interop/egl_khr_cl_event2.c
@@ -225,6 +225,7 @@ test_cleanup(EGLSyncKHR sync, enum piglit_result *inout_result)
 			piglit_loge("failed to terminate EGLDisplay");
 			*inout_result = PIGLIT_FAIL;
 		}
+		piglit_gl_reinitialize_extensions();
 	}
 
 	g_dpy = EGL_NO_DISPLAY;
-- 
2.8.1



More information about the Piglit mailing list