egl/android: Use droid_create_image_from_prime_fds() in get_back_bo()
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 11 Aug 2020 01:44:34 +0000 (18:44 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 17:20:16 +0000 (17:20 +0000)
commitacb235c0c8a4100b0a10a54969c94e300b6005c3
tree33967d2a0214a1be4236b82aef13215696408faa
parentcad9d42bb4ec7166c860d8377520fd1bb4dd37f4
egl/android: Use droid_create_image_from_prime_fds() in get_back_bo()

This function wants to create a __DRIimage for an ANativeWindowBuffer,
which is mostly the same logic as when we create an EGLImage for an
ANativeWindowBuffer.  Reuse droid_create_image_from_prime_fds().

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