egl: Let the caller of dri2_create_drawable decide about loaderPrivate.
authorMathias Fröhlich <mathias.froehlich@web.de>
Fri, 7 Jun 2019 05:12:42 +0000 (07:12 +0200)
committerMathias Fröhlich <mathias.froehlich@web.de>
Mon, 10 Jun 2019 09:06:48 +0000 (11:06 +0200)
commita7ecf78b900c28aafdc1cd1e1a4117feb30a66c9
treeda269a5af9762133979d43e801823439bfa03c03
parent91aa25f4625014ddf194578fc1c1d0a505e5f8db
egl: Let the caller of dri2_create_drawable decide about loaderPrivate.

In the call arguments to dri2_create_drawable decouple loaderPrivate
from dri2_surf. For all callers of dri2_create_drawable the two
pointers are the same with the exception of the gbm backed platform.
Let the calling code of dri2_create_drawable decide what
loaderPrivate shall be.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_device.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_surfaceless.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c