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

Eduardo Lima Mitev elima at igalia.com
Fri May 13 13:09:07 UTC 2016


Patch looks good, but I was not able to test it fully.

Acked-by: Eduardo Lima Mitev <elima at igalia.com>

Eduardo

On 05/12/2016 09:21 AM, Michel Dänzer wrote:
> 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;
> 



More information about the Piglit mailing list