android: Fix ELF TLS support.
authorEric Anholt <eric@anholt.net>
Wed, 21 Apr 2021 20:58:58 +0000 (13:58 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Jun 2021 03:10:49 +0000 (03:10 +0000)
commit0d8e431871b0eeb98a6fa8afba2d76e9ecbce822
tree216e1793b7456817939f674e3e016d8c39094646
parent75a9cb1033a954a5a160335405a7627ae7c4aa66
android: Fix ELF TLS support.

Android 29 introduced general-dynamic TLS variable support ("quick
function call to look up the location of the dynamically allocated
storage"), while Mesa on normal Linux has used initial-exec ("use some of
the startup-time fixed slots, hope for the best!").  Both would be better
options than falling all the way back to pthread_getspecific(), which is
the alternative we have pre-29.

Reviewed-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10389>
meson.build
src/util/u_thread.h