egl/dri2: fix image loaderPrivate type mixup
authorDavid Stevens <stevensd@chromium.org>
Wed, 23 Dec 2020 14:38:32 +0000 (23:38 +0900)
committerDavid Stevens <stevensd@chromium.org>
Wed, 23 Dec 2020 15:05:15 +0000 (00:05 +0900)
commitdf09ada411dfca4d83db6b430e57a48cab81ba37
treef188b13ca2816e7ddc5c50bc31d9490b309c07c9
parent2d0c723ce661bf45f6c5286c0671ab0eb138081a
egl/dri2: fix image loaderPrivate type mixup

The first callback which uses an image's loaderPrivate data was recently
added. Prior to this, dri2_create_image_khr_texture had been setting the
unused loaderPrivate field on the image it creates. This caused a
pointer type mixup in platform_android when it started using the new
callback. Fix this by no longer unnecessarily setting loaderPrivate in
dri2_create_image_khr_texture.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4010
Fixes: a2fb87eea6d ("egl/android: implement image cleanup callback")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8211>
src/egl/drivers/dri2/egl_dri2.c