<div dir="ltr"><div><div><div>Hello Albert,<br><br></div>Thank you for your answer. <br>In fact, enabling hardware acceleration is the first step. My goal is to run a WebKit-based browser with WebGL support. I did not plan to use Wayland and I think that the browser (not chosen yet) could require GLX.<br><br></div>Regards,<br></div>Gaylord<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><b style="font-size:12.8px"><font size="2" face="verdana, sans-serif"><span style="color:rgb(0,0,0)">Gaylord CHARLES</span></font></b><br></div><div style="font-size:12.8px"><div dir="ltr" style="font-size:small;color:rgb(136,136,136)"><br></div><div dir="ltr" style="font-size:12.8px"><font size="2" face="verdana, sans-serif"><b><font color="#000000">Veo-Labs</font><br></b><span style="color:rgb(102,102,102)">14, rue du Patis Tatelin, Batiment D</span></font></div><div dir="ltr" style="font-size:12.8px"><font size="2" face="verdana, sans-serif"><span style="color:rgb(102,102,102)">35700 Rennes - France</span></font></div><div dir="ltr" style="font-size:12.8px"><a href="http://www.veo-labs.com/" style="color:rgb(17,85,204)" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B958RX67El3nQmpORG9QT2RxdnM&revid=0B958RX67El3nRkhNY05OV08xOUVnODBlb0NSVDFtWmNFQUJvPQ" height="100" width="200" alt=""></a><br></div><div style="font-size:12.8px"><font face="verdana, sans-serif" color="#666666" size="1">Retrouvez nous sur :</font></div><div dir="ltr" style="font-size:small"><span style="font-size:12.8px"><font size="2" face="verdana, sans-serif"><a href="https://twitter.com/Veo_Labs" style="color:rgb(17,85,204)" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B0gbV2Hm8QZ0MTR1SzVCNXY1SEE&revid=0B0gbV2Hm8QZ0SGVQMDFEU3ZLTFBFTUh1WjRVMm5IOU1NZXQ4PQ"></a> </font></span><a href="https://www.linkedin.com/company/veo-labs" style="color:rgb(17,85,204);font-size:12.8px" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B0gbV2Hm8QZ0aFJDY1UtVURsVlk&revid=0B0gbV2Hm8QZ0YlNwSHI5SjBvWDVkZUQwNnRadktzZEh6cmRnPQ" style="font-size:12.8px"></a><span style="font-size:12.8px"> </span><span style="font-size:12.8px"><a href="http://www.viadeo.com/fr/company/veo-labs" style="color:rgb(17,85,204)" target="_blank"><img src="https://docs.google.com/uc?export=download&id=0B0gbV2Hm8QZ0Wjd3MG1lTzJqQjQ&revid=0B0gbV2Hm8QZ0dG9yVm4zTDRWVkRjdlRDZ0QyWWhXeEszUUdrPQ" alt=""></a></span></div><div dir="ltr" style="font-size:small"><br></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2016-10-18 3:12 GMT+02:00 Albert Freeman <span dir="ltr"><<a href="mailto:albertwdfreeman@gmail.com" target="_blank">albertwdfreeman@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When I said Makefile I meant <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
<div class="HOEnZb"><div class="h5"><br>
On 18 October 2016 at 01:09, Albert Freeman <<a href="mailto:albertwdfreeman@gmail.com">albertwdfreeman@gmail.com</a>> wrote:<br>
> Also note --with-dri-driverdir= depends on X configure options I believe.<br>
> And if when compiling pthread stubs gives you an issue delete it from<br>
> the Makefile:<br>
> diff -ur mesa-orig/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> mesa-origb/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
> --- mesa-orig/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> 2016-05-25 15:37:44.191643017 +0200<br>
> +++ mesa-origb/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> 2016-05-25 15:42:20.861654709 +0200<br>
> @@ -813,10 +813,6 @@<br>
> dnl pkgconfig files.<br>
> test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread"<br>
><br>
> -PKG_CHECK_MODULES(<wbr>PTHREADSTUBS, pthread-stubs)<br>
> -AC_SUBST(PTHREADSTUBS_CFLAGS)<br>
> -AC_SUBST(PTHREADSTUBS_LIBS)<br>
> -<br>
> dnl SELinux awareness.<br>
> AC_ARG_ENABLE([selinux],<br>
> [AS_HELP_STRING([--enable-<wbr>selinux],<br>
><br>
><br>
><br>
> It dosen't appear etnaviv uses llvm/clang, and you probably don't want<br>
> with-sha1 or opencl so:<br>
> ./configure --prefix=/usr \<br>
> --sysconfdir=/etc \<br>
> --with-dri-driverdir=/usr/lib/<wbr>xorg/modules/dri \<br>
> --with-gallium-drivers=etnaviv \<br>
> --with-dri-drivers= \<br>
> --with-egl-platforms=x11,drm,<wbr>wayland \<br>
> --disable-xvmc \<br>
> --enable-shared-glapi \<br>
> --enable-egl \<br>
> --enable-glx \<br>
> --enable-glx-tls \<br>
> --enable-gles1 \<br>
> --enable-gles2 \<br>
> --enable-gbm \<br>
> --enable-dri \<br>
> --enable-texture-float<br>
><br>
> On 18 October 2016 at 00:54, Albert Freeman <<a href="mailto:albertwdfreeman@gmail.com">albertwdfreeman@gmail.com</a>> wrote:<br>
>> Gallium has code that allows gallium drivers to be used with the dri<br>
>> interface. X uses that dri gallium code. It makes gallium drivers act<br>
>> like dri ones.<br>
>> I believe all you need is EGL and not GLX if you are using GL ES.<br>
>> Though as soon as any software you are using requires GLX...<br>
>> I am not entirely sure if etnaviv uses llvm so you can perhaps leave<br>
>> that out below.<br>
>><br>
>> Here is a mesa config that can run X with OpenGL ES (so all the flags you need):<br>
>><br>
>> ./configure --prefix=/usr \<br>
>> --sysconfdir=/etc \<br>
>> --with-dri-driverdir=/usr/lib/<wbr>xorg/modules/dri \<br>
>> --with-gallium-drivers=etnaviv \<br>
>> --with-dri-drivers= \<br>
>> --with-egl-platforms=x11,drm,<wbr>wayland \<br>
>> --with-sha1=libgcrypt \<br>
>> --disable-xvmc \<br>
>> --enable-gallium-llvm \<br>
>> --enable-llvm-shared-libs \<br>
>> --enable-shared-glapi \<br>
>> --enable-egl \<br>
>> --enable-glx \<br>
>> --enable-glx-tls \<br>
>> --enable-gles1 \<br>
>> --enable-gles2 \<br>
>> --enable-gbm \<br>
>> --enable-dri \<br>
>> --enable-texture-float \<br>
>> --enable-opencl --enable-opencl-icd \<br>
>> --with-clang-libdir=/usr/lib<br>
>><br>
>><br>
>> On 17 October 2016 at 16:12, Gaylord Charles<br>
>> <<a href="mailto:gaylord.charles@veo-labs.com">gaylord.charles@veo-labs.com</a>> wrote:<br>
>>> Hello,<br>
>>><br>
>>> I'm working on an i.MX6 based board and I'm interested in Vivante GPU<br>
>>> support. My goal is to run an OpenGL ES-based application on X server with<br>
>>> hardware acceleration.<br>
>>> I know there is ongoing work to include etnaviv support in Mesa but I'm<br>
>>> trying to make it work on my side (mainly by compiling code from<br>
>>> <a href="https://github.com/etnaviv" rel="noreferrer" target="_blank">https://github.com/etnaviv</a>).<br>
>>> I've got:<br>
>>> - A 4.6.7 kernel with etnaviv DRM driver<br>
>>> - libdrm with etnaviv drm support (version 2.4.71)<br>
>>> - Mesa 12.0_etnaviv branch from <a href="https://github.com/etnaviv/mesa/" rel="noreferrer" target="_blank">https://github.com/etnaviv/<wbr>mesa/</a><br>
>>> - Mesa3d-demos version 8.3.0 (I'm using glxinfo and glxgears to check<br>
>>> OpenGL support)<br>
>>><br>
>>> If my understanding is correct, I also need:<br>
>>> - xf86-video-armada (I took unstable-devel branch from<br>
>>> <a href="http://git.arm.linux.org.uk/cgit/xf86-video-armada.git/" rel="noreferrer" target="_blank">http://git.arm.linux.org.uk/<wbr>cgit/xf86-video-armada.git/</a>) and the following<br>
>>> dependencies:<br>
>>> - libdrm-armada (git://<a href="http://ftp.arm.linux.org.uk/~rmk/libdrm-armada.git/" rel="noreferrer" target="_blank">ftp.arm.linux.org.uk/~<wbr>rmk/libdrm-armada.git/</a>)<br>
>>> - libetnaviv<br>
>>> (<a href="https://github.com/etnaviv/etna_viv/tree/master/src/etnaviv" rel="noreferrer" target="_blank">https://github.com/etnaviv/<wbr>etna_viv/tree/master/src/<wbr>etnaviv</a>)<br>
>>><br>
>>> Is it the right way to proceed ?<br>
>>><br>
>>> Concerning Mesa configuration, I'm a little bit confused about Gallium and<br>
>>> DRI. Etnaviv is a Gallium driver, so do I need to use --enable-dri or<br>
>>> --enable-driglx-direct.<br>
>>> For example in Buildroot, I have to select DRI swrast driver to have<br>
>>> "--enable-driglx-direct" defined.<br>
>>><br>
>>> Regards,<br>
>>> Gaylord CHARLES<br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> mesa-users mailing list<br>
>>> <a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.<wbr>org</a><br>
>>> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-users" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-users</a><br>
>>><br>
</div></div></blockquote></div><br></div>