egl/android: Add support for CrOS buffer info perform op
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 11 Aug 2020 02:05:05 +0000 (19:05 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 17:20:16 +0000 (17:20 +0000)
commitf88b9eb9c5f5d18bec2419471b1dedfb6136bc43
treec44b744247ba259dbd3261b73fc4fcfddae0fd22
parentacb235c0c8a4100b0a10a54969c94e300b6005c3
egl/android: Add support for CrOS buffer info perform op

This uses a new gralloc perform op that returns the buffer info we
need.  No need to guess at formats, hard code offsets and recalculate
strides.  This also gives us the format modifier as well as aux planes
for compressed RGBA buffers.

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