egl/android: Call createImageFromDmaBufs directly
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 6 Aug 2020 23:38:28 +0000 (16:38 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 17:20:16 +0000 (17:20 +0000)
commit972f36d8fa62442589b26885ef330c3306427ed1
treec6197c8df04977464c33dd30ed80ab26d9694ac3
parent7c98066e8051fe17c5cd2669dd3a8db14c0bfd1e
egl/android: Call createImageFromDmaBufs directly

Instead of building up EGL attribute lists and then having to parse
them again, call the DRI driver directly and then use the
dri2_create_image_from_dri() helper to wrap the __DRIimage in an
EGLImage.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6055>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c