mesa/src/gallium/targets
Tomasz Figa abaf0e9817 gallium/dri: Add shared glapi to LIBADD on Android
An earlier patch fixed the problem for classic drivers, however Gallium
was still left broken. This patch applies the same workaround to
Gallium, when compiled for Android. Following is a quote from the
original patch:

0cbc90c57c mesa: dri: Add shared glapi to LIBADD on Android

/system/vendor/lib/dri/*_dri.so actually depend on libglapi: without
this, loading the so file fails with:
cannot locate symbol "__emutls_v._glapi_tls_Context"

On non-Android (non-bionic) platform, EGL uses the following
workflow, which works fine:
  dlopen("libglapi.so", RTLD_LAZY | RTLD_GLOBAL);
  dlopen("dri/<driver>_dri.so", RTLD_NOW | RTLD_GLOBAL);

However, bionic does not respect the RTLD_GLOBAL flag, and the dri
library cannot find symbols in libglapi.so, so we need to link
to libglapi.so explicitly. Android.mk already does this.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
(cherry picked from commit 70a28afb29)
2016-07-21 14:01:15 +01:00
..
d3dadapter9 st/nine: Turn on thread_submit by default when on different device 2016-05-18 23:37:14 +02:00
dri gallium/dri: Add shared glapi to LIBADD on Android 2016-07-21 14:01:15 +01:00
graw-gdi galahad: remove driver 2015-03-21 17:18:28 +00:00
graw-null Treewide: Remove Elements() macro 2016-05-17 15:28:04 -04:00
graw-xlib galahad: remove driver 2015-03-21 17:18:28 +00:00
haiku-softpipe scons: gallium: link against nir as needed 2016-05-17 14:22:46 -04:00
libgl-gdi scons: whitespace cleanup 2016-05-25 12:23:12 -06:00
libgl-xlib scons: gallium: link against nir as needed 2016-05-17 14:22:46 -04:00
omx targets: use the non-inline sw helpers 2015-11-25 20:25:29 +00:00
opencl st/clover: Add libelf cflags to the build 2016-02-29 11:30:15 +00:00
osmesa osmesa: Export OSMesaCreateContextAttribs. 2016-07-07 16:12:34 +01:00
pipe-loader gallium/swr: allow swr use as a swrast dri driver 2016-04-15 14:21:50 -05:00
va st/va: hardlink driver instances to gallium_drv_video.so 2016-06-15 09:29:12 +01:00
vdpau targets: use the non-inline sw helpers 2015-11-25 20:25:29 +00:00
xa nir: move to compiler/ 2016-01-26 16:08:30 +00:00
xvmc targets/xvmc: use the non-inline sw helpers 2015-11-26 12:14:28 +09:00
dri-vdpau.dyn winsys/amdgpu: add a new winsys for the new kernel driver 2015-08-14 15:02:28 +02:00