On 13 July 2016 at 04:29, Nicolas Boichat <drink...@chromium.org> wrote: > From: Tomasz Figa <tf...@chromium.org> > > 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: > > 0cbc90c57cfc 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. > I believe we want to have this along side the classic patch, thus Cc: "12.0" <mesa-sta...@lists.freedesktop.org>
> Signed-off-by: Tomasz Figa <tf...@chromium.org> > Signed-off-by: Nicolas Boichat <drink...@chromium.org> For this and the "Remove unused variables" patch Reviewed-by: Emil Velikov <emil.veli...@collabora.com> Out of curiosity: which driver was this tested with/against ? Humble suggestion: if you re-spin the third_party/mesa, arc branch(es) against 12.0 you'll see that many of your local patches are merged/superseded. From a brief look most/all of the remaining are also suitable for upstream, albeit they might need a bit of polish. Let us know how we can help out with those and/or the .pc business suggested earlier. -Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev