egl: Relax locking
authorRob Clark <robdclark@chromium.org>
Thu, 11 Aug 2022 17:52:59 +0000 (10:52 -0700)
committerRob Clark <robdclark@chromium.org>
Thu, 8 Sep 2022 04:21:38 +0000 (21:21 -0700)
commitbbef3cb9d31178423a3b69868088e36dc424530a
tree97726bcf7f2d50143c0f536070f3c13490a7d588
parent5d99e8cc0322aa9132826cbfe00e9525790a8b5d
egl: Relax locking

Now that we have the rwlock TerminateLock protecting us against
eglTerminate() yanking the rug from under us, drop the BDL across
calls to driver (or at least the main ones that can potentially
block).

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7039
Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18050>
src/egl/drivers/dri2/platform_android.c
src/egl/main/eglapi.c