[Mesa-dev] [PATCH 0/4] egl/*: Set disp->DriverData to NULL on error

Martin Peres martin.peres at linux.intel.com
Thu Aug 4 09:52:57 UTC 2016


On 04/08/16 05:07, Nicolas Boichat wrote:
> egl/x11 fixup has already be sent here:
> https://patchwork.freedesktop.org/patch/101934/
>
> Compile-tested only (on android only).
>
> I was first thinking of modifying most functions in egl_dri2.c to take in
> dri2_egl_display *dri2_dpy instead of _EGLDisplay *disp as parameter, so
> we do not need to set disp->DriverData early in the dri_initialize_* functions.
>
> But there are some functions that do need disp as well:
>  - dri2_add_config, to call _eglInitConfig (disp->DriverData does not need to be
>    set), and to check if extensions are supported.
>  - dri2_setup_screen (similar reasons)
>
> Ideas to untangle this are welcome. In the mean time, this patch series should
> fix crashes and a piglit test.
>
> Nicolas Boichat (4):
>   egl/wayland: Set disp->DriverData to NULL on error
>   egl/surfaceless: Set disp->DriverData to NULL on error
>   egl/drm: Set disp->DriverData to NULL on error
>   egl/android: Set dpy->DriverData to NULL on error
>

This patch series fixes egl_khr_fence_sync for me:
Tested-by: Martin Peres <martin.peres at linux.intel.com>

However, egl-create-context-verify-gl-flavor is still crashing, even 
with "egl/dri2: dri2_initialize: Do not reference-count TestOnly 
display" applied. The issue is that eglGetProcAddress("glGetString") 
returns NULL.

Martin



More information about the mesa-dev mailing list