<div dir="ltr"><div dir="ltr">Hi Eric, Emil,</div><div>we have Tapani ok, in my understanding</div><div><br></div><div>Please follow up on this one</div><div>Mauro</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 4:29 AM Mauro Rossi <<a href="mailto:issor.oruam@gmail.com">issor.oruam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Tapani, Eric,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 15, 2019 at 1:00 PM Tapani Pälli <<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 8/15/19 12:52 PM, Mauro Rossi wrote:<br>
> Hi Tapani,<br>
> <br>
> On Thu, Aug 15, 2019 at 7:29 AM Tapani Pälli <<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a> <br>
> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>>> wrote:<br>
> <br>
> <br>
> On 8/13/19 9:55 PM, Mauro Rossi wrote:<br>
> > Hi,<br>
> ><br>
> > On Tue, Aug 13, 2019 at 3:51 PM Tapani Pälli<br>
> <<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>><br>
> > <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>>>><br>
> wrote:<br>
> ><br>
> ><br>
> > On 8/13/19 3:32 PM, Mauro Rossi wrote:<br>
> > > Hi,<br>
> > ><br>
> > > On Tue, Aug 13, 2019 at 2:03 PM Tapani Pälli<br>
> > <<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>><br>
> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>>><br>
> > > <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a><br>
> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a><br>
> <mailto:<a href="mailto:tapani.palli@intel.com" target="_blank">tapani.palli@intel.com</a>>>>><br>
> > wrote:<br>
> > ><br>
> > > Hi;<br>
> > ><br>
> > > On 8/13/19 2:43 PM, Mauro Rossi wrote:<br>
> > > > Hi Tapani,<br>
> > > ><br>
> > > > On Sat, Jul 27, 2019 at 2:56 PM Mauro Rossi<br>
> > > <<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>><br>
> > > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>>>> wrote:<br>
> > > ><br>
> > > > On Sat, Jul 27, 2019 at 2:56 PM Mauro Rossi<br>
> > > <<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>><br>
> > > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>>>> wrote:<br>
> > > > ><br>
> > > > > On Thu, Jul 18, 2019 at 1:07 PM Chih-Wei Huang<br>
> > > > <<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>><br>
> > <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>>> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>><br>
> > <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>>>><br>
> > > <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>><br>
> > <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>>> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>><br>
> > <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a><br>
> <mailto:<a href="mailto:cwhuang@android-x86.org" target="_blank">cwhuang@android-x86.org</a>>>>>><br>
> > > wrote:<br>
> > > > > ><br>
> > > > > > Mauro Rossi <<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>><br>
> > > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>>>> 於 2019年7月14日 週日 下午5:17寫道:<br>
> > > > > > ><br>
> > > > > > > This patch partially reverts 20294dc ("mesa:<br>
> > Enable asm<br>
> > > > unconditionally, ...")<br>
> > > > > > ><br>
> > > > > > > Android makefile build logic needs to<br>
> disable<br>
> > assembler<br>
> > > > optimization<br>
> > > > > > > in 32bit builds to avoid text<br>
> relocations for<br>
> > > libglapi.so shared<br>
> > > > > > ><br>
> > > > > > > Fixes the following build error with Android<br>
> > x86 32bit<br>
> > > target:<br>
> > > > > > ><br>
> > > > > > > [ 0% 4/477] target SharedLib: libglapi<br>
> > > ><br>
> > ><br>
> > <br>
> (out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/LINKED/libglapi.so)<br>
> > > > > > > FAILED:<br>
> > > ><br>
> > ><br>
> > <br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/LINKED/libglapi.so<br>
> > > > > > > ...<br>
> > > > > > ><br>
> > > ><br>
> > ><br>
> > <br>
> prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin/ld:<br>
> > > > warning: shared library text segment is not<br>
> shareable<br>
> > > > > > ><br>
> > > ><br>
> > ><br>
> > <br>
> prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin/ld:<br>
> > > > error: treating warnings as errors<br>
> > > > > > > clang-6.0: error: linker command failed with<br>
> > exit code<br>
> > > 1 (use<br>
> > > > -v to see invocation)<br>
> > > > > > ><br>
> > > > > > > Fixes: 20294dc ("mesa: Enable asm<br>
> > unconditionally, now<br>
> > > that<br>
> > > > gen_matypes is gone.")<br>
> > > > > > > Signed-off-by: Mauro Rossi<br>
> > <<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>><br>
> > > > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>><br>
> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>><br>
> > <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a> <mailto:<a href="mailto:issor.oruam@gmail.com" target="_blank">issor.oruam@gmail.com</a>>>>>><br>
> > > > > > > ---<br>
> > > > > > > <a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a><br>
> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > > | 3 +++<br>
> > > > > > > Android.mk | 7<br>
> +++++++<br>
> > > > > > > src/mesa/<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">Android.libmesa_dricore.mk</a><br>
> <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>> | 2 ++<br>
> > > > > > > src/mesa/<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">Android.libmesa_st_mesa.mk</a><br>
> <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>> | 2 ++<br>
> > > > > > > 4 files changed, 14 insertions(+)<br>
> > > > > > ><br>
> > > > > > > diff --git a/<a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a><br>
> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > > b/<a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > > > > > index 8a1c734353..209654bb75 100644<br>
> > > > > > > --- a/<a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a><br>
> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > > > > > +++ b/<a href="http://Android.common.mk" rel="noreferrer" target="_blank">Android.common.mk</a><br>
> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>> <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > <<a href="http://Android.common.mk" rel="noreferrer" target="_blank">http://Android.common.mk</a>><br>
> > > > > > > @@ -106,9 +106,12 @@ ifeq ($(shell test<br>
> > > > $(PLATFORM_SDK_VERSION) -ge 26 && echo true),true)<br>
> > > > > > > LOCAL_CFLAGS += -DHAVE_SYS_SHM_H<br>
> > > > > > > endif<br>
> > > > > > ><br>
> > > > > > > +ifeq ($(strip $(MESA_ENABLE_ASM)),true)<br>
> > > > > > > ifeq ($(TARGET_ARCH),x86)<br>
> > > > > > > LOCAL_CFLAGS += \<br>
> > > > > > > -DUSE_X86_ASM<br>
> > > > > > > +<br>
> > > > > > > +endif<br>
> > > > > > > endif<br>
> > > > > > > ifeq ($(ARCH_ARM_HAVE_NEON),true)<br>
> > > > > > > LOCAL_CFLAGS_arm += -DUSE_ARM_ASM<br>
> > > > > > > diff --git a/Android.mk b/Android.mk<br>
> > > > > > > index 57613eccfc..4a2a003ea3 100644<br>
> > > > > > > --- a/Android.mk<br>
> > > > > > > +++ b/Android.mk<br>
> > > > > > > @@ -83,6 +83,13 @@ endif<br>
> > > > > > ><br>
> > > > > > > $(foreach d, $(MESA_BUILD_CLASSIC)<br>
> > $(MESA_BUILD_GALLIUM),<br>
> > > > $(eval $(d) := true))<br>
> > > > > > ><br>
> > > > > > > +# host and target must be the same arch to<br>
> > generate<br>
> > > matypes.h<br>
> > > > > > > +ifeq ($(TARGET_ARCH),$(HOST_ARCH))<br>
> > > > > > > +MESA_ENABLE_ASM := true<br>
> > > > > > > +else<br>
> > > > > > > +MESA_ENABLE_ASM := false<br>
> > > > > > > +endif<br>
> > > > > > > +<br>
> > > > > > > ifneq ($(filter true,<br>
> $(HAVE_GALLIUM_RADEONSI)),)<br>
> > > > > > > MESA_ENABLE_LLVM := true<br>
> > > > > > > endif<br>
> > > > > > > diff --git<br>
> > a/src/mesa/<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">Android.libmesa_dricore.mk</a><br>
> <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > b/src/mesa/<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">Android.libmesa_dricore.mk</a><br>
> <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > > > > index 8eb6aabe83..792117767b 100644<br>
> > > > > > > ---<br>
> a/src/mesa/<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">Android.libmesa_dricore.mk</a><br>
> <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > > > > +++<br>
> b/src/mesa/<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">Android.libmesa_dricore.mk</a><br>
> <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > <<a href="http://Android.libmesa_dricore.mk" rel="noreferrer" target="_blank">http://Android.libmesa_dricore.mk</a>><br>
> > > > > > > @@ -39,9 +39,11 @@ LOCAL_MODULE_CLASS :=<br>
> > STATIC_LIBRARIES<br>
> > > > > > > LOCAL_SRC_FILES := \<br>
> > > > > > > $(MESA_FILES)<br>
> > > > > > ><br>
> > > > > > > +ifeq ($(strip $(MESA_ENABLE_ASM)),true)<br>
> > > > > > > ifeq ($(TARGET_ARCH),x86)<br>
> > > > > > > LOCAL_SRC_FILES += $(X86_FILES)<br>
> > > > > > > endif # x86<br>
> > > > > > > +endif # MESA_ENABLE_ASM<br>
> > > > > > ><br>
> > > > > > > ifeq ($(ARCH_X86_HAVE_SSE4_1),true)<br>
> > > > > > > LOCAL_WHOLE_STATIC_LIBRARIES := \<br>
> > > > > > > diff --git<br>
> > a/src/mesa/<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">Android.libmesa_st_mesa.mk</a><br>
> <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > b/src/mesa/<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">Android.libmesa_st_mesa.mk</a><br>
> <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > > > > index 16153a3c5b..ddfd03059c 100644<br>
> > > > > > > ---<br>
> a/src/mesa/<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">Android.libmesa_st_mesa.mk</a><br>
> <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > > > > +++<br>
> b/src/mesa/<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">Android.libmesa_st_mesa.mk</a><br>
> <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > <<a href="http://Android.libmesa_st_mesa.mk" rel="noreferrer" target="_blank">http://Android.libmesa_st_mesa.mk</a>><br>
> > > > > > > @@ -42,9 +42,11 @@<br>
> LOCAL_GENERATED_SOURCES := \<br>
> > > > > > > $(MESA_GEN_GLSL_H) \<br>
> > > > > > > $(MESA_GEN_NIR_H)<br>
> > > > > > ><br>
> > > > > > > +ifeq ($(strip $(MESA_ENABLE_ASM)),true)<br>
> > > > > > > ifeq ($(TARGET_ARCH),x86)<br>
> > > > > > > LOCAL_SRC_FILES += $(X86_FILES)<br>
> > > > > > > endif # x86<br>
> > > > > > > +endif # MESA_ENABLE_ASM<br>
> > > > > > ><br>
> > > > > > > ifeq ($(ARCH_X86_HAVE_SSE4_1),true)<br>
> > > > > > > LOCAL_WHOLE_STATIC_LIBRARIES := \<br>
> > > > > > > --<br>
> > > > > ><br>
> > > > > > Looks good to me.<br>
> > > > > ><br>
> > > > > > Review-by: Chih-Wei Huang<br>
> <<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>><br>
> > <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>>><br>
> > > <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a><br>
> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a><br>
> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>>>><br>
> > > > <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a><br>
> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>><br>
> > <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>>><br>
> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>><br>
> > <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a> <mailto:<a href="mailto:cwhuang@linux.org.tw" target="_blank">cwhuang@linux.org.tw</a>>>>>><br>
> > > > ><br>
> > > > > Added Tapani who should one of the users of<br>
> 32bit mesa,<br>
> > > > > please provide feedback to proceed.<br>
> > > > > Mauro<br>
> > > ><br>
> > > > Tapani added now<br>
> > > > M.<br>
> > > ><br>
> > > ><br>
> > > > did you had the chance to have a look<br>
> > > > and provide Reviewed-by ?<br>
> > > ><br>
> > ><br>
> > > Sorry I've managed to miss this one. I'm not hitting any<br>
> > problems after<br>
> > > mentioned changes though. Does this happen only if you<br>
> > compile on a<br>
> > > 32bit machine? I'm compiling both 64bit and 32bit but<br>
> on a 64bit<br>
> > > machine.<br>
> > ><br>
> > ><br>
> > ><br>
> > > // Tapani<br>
> > ><br>
> > ><br>
> > > It happens when compiling on a 64 bit build machine,<br>
> > > the assembler parts of mesa have text relocation when mesa<br>
> libglapi<br>
> > > 32bit target is compiled.<br>
> > ><br>
> > > How do you avoid the linker error?<br>
> ><br>
> > I'm not getting any linker error. Today I've compiled and<br>
> tested both<br>
> > i965 and iris with some patches rebased on top of commit<br>
> b594796f1b8.<br>
> ><br>
> > Does this happen with a particular version of Android?<br>
> ><br>
> > // Tapani<br>
> ><br>
> ><br>
> > It happens with oreo-x86 (Android 8.1) and pie-x86 (Android 9),<br>
> > but we histocally know since Lollipop that building mesa<br>
> > with asm optimization induces text relocations in libglapi shared<br>
> library<br>
> > and the specific problem affects 32bit builds<br>
> ><br>
> > Here is the build log where '--warn-shared-textrel' is visible for<br>
> > target libglapi.so,<br>
> > please Tapani could you provide the corresponding section of your<br>
> build log?<br>
> > (There may be clues about the reason you are not getting the error)<br>
> <br>
> I've made a celadon P build today and put the build log here:<br>
> <br>
> <a href="http://tpalli.kapsi.fi/build_log.tgz" rel="noreferrer" target="_blank">http://tpalli.kapsi.fi/build_log.tgz</a><br>
> <br>
> This is not complete image but builds the mesa parts, you can see that<br>
> libglapi is being built both for 32bit and 64bit in the log.<br>
> <br>
> <br>
> In our scenario the text relocations happen when building android-x86 <br>
> 32bit user space on 32bit kernel,<br>
> in your build log you are building x86_64 target, where we also don't <br>
> get any issue.<br>
<br>
Ah right now I got it, this is the difference we had.<br>
<br>
> Could you please try, when you have time (and no hurry) to build Celadon <br>
> P 32bit user space on 32bit kernel?<br>
<br>
I don't think we have such a target, but also I think these changes here <br>
should not affect celadon so this is fine change for me. If I read <br>
correctly, it sets MESA_ENABLE_ASM if TARGET_ARCH equals HOST_ARCH, right?<br></blockquote><div><br></div><div>Yes, this is the pre-existing logic in Android makefiles</div><div><br></div><div>I have also tried to replicate meson.build logic with Android Build System variables,</div><div>but it does not work</div><div><br></div><div>Please provide Acked-by and I will push the partial revert for Android to master</div><div><br></div><div>Mauro </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
> I'd really like to use asm optimizations if now possible<br>
> <br>
> As additional info here is the android-x86-development thread were all <br>
> attempst to use -fPIC, -DPIC were failed,<br>
> in our experience the 32bit user space will just refuse to use the <br>
> libglapi.so with Text Relocations:<br>
> <a href="https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/android-x86-devel/qO9gtkyE_PU/9fUan0VjCAAJ" rel="noreferrer" target="_blank">https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/android-x86-devel/qO9gtkyE_PU/9fUan0VjCAAJ</a> <br>
> <br>
> <br>
> Then if Celadon P can build libglapi.so without Text Relocations for <br>
> 32bit user space on 32bit kernel,<br>
> how is it done? We have this problem since Android nougat-x86<br>
> <br>
> Thanks (and sorry in case I'm doing something wrong)<br>
> Mauro<br>
> <br>
> <br>
> <br>
> > [ 1% 5/326] target SharedLib: libglapi<br>
> ><br>
> (out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/LINKED/libglapi.so)<br>
> > FAILED:<br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/LINKED/libglapi.so<br>
> <br>
> ><br>
> > /bin/bash -c<br>
> "prebuilts/clang/host/linux-x86/clang-4691093/bin/clang++<br>
> > -nostdlib -Wl,-soname,libglapi.so -Wl,--gc-sections -shared<br>
> > out/target/product/x86/obj/lib/crtbegin_so.o<br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/entry.o<br>
> <br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/mapi_glapi.o<br>
> <br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/stub.o<br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/table.o<br>
> <br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/u_current.o<br>
> <br>
> ><br>
> out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/u_execmem.o<br>
> <br>
> > -Wl,--whole-archive -Wl,--no-whole-archive<br>
> ><br>
> out/target/product/x86/obj/STATIC_LIBRARIES/libclang_rt.ubsan_minimal-i686-android_intermediates/libclang_rt.ubsan_minimal-i686-android.a<br>
> <br>
> > <br>
> out/target/product/x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a out/target/product/x86/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a out/target/product/x86/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,*--warn-shared-textrel *-Wl,--fatal-warnings -Wl,--no-undefined-version -Wl,--hash-style=gnu -m32 -target i686-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wl,--exclude-libs,libclang_rt.ubsan_minimal-i686-android.a -Wl,--no-undefined out/target/product/x86/obj/lib/libdrm.so out/target/product/x86/obj/lib/libc++.so out/target/product/x86/obj/lib/libc.so out/target/product/x86/obj/lib/libm.so out/target/product/x86/obj/lib/libdl.so -o out/target/product/x86/obj/SHARED_LIBRARIES/libglapi_intermediates/LINKED/libglapi.so out/target/product/x86/obj/lib/crtend_so.o"<br>
> ><br>
> prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin/ld:<br>
> <br>
> > warning: shared library text segment is not shareable<br>
> ><br>
> prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin/ld:<br>
> <br>
> > error: treating warnings as errors<br>
> > clang-6.0: error: linker command failed with exit code 1 (use -v<br>
> to see<br>
> > invocation)<br>
> <br>
</blockquote></div></div>
</blockquote></div></div>