[Mesa-users] Etnaviv support in Mesa
Albert Freeman
albertwdfreeman at gmail.com
Tue Oct 18 00:54:45 UTC 2016
Gallium has code that allows gallium drivers to be used with the dri
interface. X uses that dri gallium code. It makes gallium drivers act
like dri ones.
I believe all you need is EGL and not GLX if you are using GL ES.
Though as soon as any software you are using requires GLX...
I am not entirely sure if etnaviv uses llvm so you can perhaps leave
that out below.
Here is a mesa config that can run X with OpenGL ES (so all the flags you need):
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
--with-gallium-drivers=etnaviv \
--with-dri-drivers= \
--with-egl-platforms=x11,drm,wayland \
--with-sha1=libgcrypt \
--disable-xvmc \
--enable-gallium-llvm \
--enable-llvm-shared-libs \
--enable-shared-glapi \
--enable-egl \
--enable-glx \
--enable-glx-tls \
--enable-gles1 \
--enable-gles2 \
--enable-gbm \
--enable-dri \
--enable-texture-float \
--enable-opencl --enable-opencl-icd \
--with-clang-libdir=/usr/lib
On 17 October 2016 at 16:12, Gaylord Charles
<gaylord.charles at veo-labs.com> wrote:
> Hello,
>
> I'm working on an i.MX6 based board and I'm interested in Vivante GPU
> support. My goal is to run an OpenGL ES-based application on X server with
> hardware acceleration.
> I know there is ongoing work to include etnaviv support in Mesa but I'm
> trying to make it work on my side (mainly by compiling code from
> https://github.com/etnaviv).
> I've got:
> - A 4.6.7 kernel with etnaviv DRM driver
> - libdrm with etnaviv drm support (version 2.4.71)
> - Mesa 12.0_etnaviv branch from https://github.com/etnaviv/mesa/
> - Mesa3d-demos version 8.3.0 (I'm using glxinfo and glxgears to check
> OpenGL support)
>
> If my understanding is correct, I also need:
> - xf86-video-armada (I took unstable-devel branch from
> http://git.arm.linux.org.uk/cgit/xf86-video-armada.git/) and the following
> dependencies:
> - libdrm-armada (git://ftp.arm.linux.org.uk/~rmk/libdrm-armada.git/)
> - libetnaviv
> (https://github.com/etnaviv/etna_viv/tree/master/src/etnaviv)
>
> Is it the right way to proceed ?
>
> Concerning Mesa configuration, I'm a little bit confused about Gallium and
> DRI. Etnaviv is a Gallium driver, so do I need to use --enable-dri or
> --enable-driglx-direct.
> For example in Buildroot, I have to select DRI swrast driver to have
> "--enable-driglx-direct" defined.
>
> Regards,
> Gaylord CHARLES
>
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-users
>
More information about the mesa-users
mailing list