Re: Etnaviv support in Mesa
Albert Freeman <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <CAHD8uZP6KYh4KUdAPSb2ZsCs6UZByn1TeKmsCWB4hJgOdFr+iQ@mail.gmail.com> |
When I said Makefile I meant configure.ac On 18 October 2016 at 01:09, Albert Freeman <[email protected]> wrote: > Also note --with-dri-driverdir= depends on X configure options I believe. > And if when compiling pthread stubs gives you an issue delete it from > the Makefile: > diff -ur mesa-orig/configure.ac mesa-origb/configure.ac > --- mesa-orig/configure.ac 2016-05-25 15:37:44.191643017 +0200 > +++ mesa-origb/configure.ac 2016-05-25 15:42:20.861654709 +0200 > @@ -813,10 +813,6 @@ > dnl pkgconfig files. > test -z "$PTHREAD_LIBS" && PTHREAD_LIBS="-lpthread" > > -PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs) > -AC_SUBST(PTHREADSTUBS_CFLAGS) > -AC_SUBST(PTHREADSTUBS_LIBS) > - > dnl SELinux awareness. > AC_ARG_ENABLE([selinux], > [AS_HELP_STRING([--enable-selinux], > > > > It dosen't appear etnaviv uses llvm/clang, and you probably don't want > with-sha1 or opencl so: > ./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 \ > --disable-xvmc \ > --enable-shared-glapi \ > --enable-egl \ > --enable-glx \ > --enable-glx-tls \ > --enable-gles1 \ > --enable-gles2 \ > --enable-gbm \ > --enable-dri \ > --enable-texture-float > > On 18 October 2016 at 00:54, Albert Freeman <[email protected]> wrote: >> 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 >> <[email protected]> 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 >>> [email protected] >>> https://lists.freedesktop.org/mailman/listinfo/mesa-users >>> _______________________________________________ mesa-users mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-users