[Mesa-users] OSMesa and GLSL
Chuck Atkins
chuck.atkins at kitware.com
Wed Oct 12 14:48:23 UTC 2016
You're missing --enable-gallium-llvm. I typically do a stripped down
OSMesa only build with llvmpipe and swr as the only available drivers using
the following:
./configure \
--enable-opengl --disable-gles1 --disable-gles2 \
--disable-va --disable-xvmc --disable-vdpau \
--enable-shared-glapi \
--disable-texture-float --with-sha1=libcrypto \
--enable-gallium-llvm --enable-llvm-shared-libs \
--with-gallium-drivers=swrast,swr \
--disable-egl --with-egl-platforms= --disable-gbm \
--disable-dri --with-dri-drivers= \
--disable-glx \
--disable-osmesa --enable-gallium-osmesa
----------
Chuck Atkins
Staff R&D Engineer, Scientific Computing
Kitware, Inc.
On Fri, Aug 5, 2016 at 8:39 AM, Yury Voronov <yvoronov at artec-group.com>
wrote:
> Hi Brian,
>
> > Different drivers support different versions of OpenGL.
> >
> > OSMesa w/ llvmpipe/softpipe should support up to GL 3.3 / GLSL 3.30
> (IIRC).
> > But you have to use the new OSMesaCreateContextAttribs() function to get
> a
> > core profile context.
>
> Thank you!
>
> Now how should I compile Mesa to achieve this? I tried something like
> --disable-dri --disable-driglx-direct --disable-egl --enable-glx
> --enable-texture-float --enable-osmesa --with-gallium-drivers=swrast
>
> or --with-gallium-drivers=swr
>
> Both gave me GL 2.1 / GLSL 1.20 with OSMESA_COMPAT_PROFILE and failed
> with OSMESA_CORE_PROFILE
>
> --with-gallium-drivers=softpipe or --with-gallium-drivers=llvmpipe
> simply does not go through.
>
> --enable-gallium-osmesa does not seem to work also.
>
> Any ideas?
>
> Thanks,
> Yury
>
> On Tue, Jul 26, 2016 at 2:52 AM, Brian Paul <brianp at vmware.com> wrote:
> > On 07/18/2016 06:50 AM, Yury Voronov wrote:
> >>
> >> Hello,
> >>
> >> I am quite new to Mesa, so would someone please help me understand the
> >> things?
> >>
> >> I have some code for texture processing working on real GPUs that
> >> extensively use shader
> >> features. Now I'd like to put it on a back-end server with no display
> >> (or even video card).
> >> And I am going to use Off-Screen Mesa for this. The latest release
> >> 12.0.1 claimed to support
> >> OpenGL 4.3 - so I supposed GLSL 4.3 is also supported. However,
> >> Shading Language Support
> >> page states that only version 3.30 is supported.
> >>
> >> In the same time, when I compiled and linked the latest Mesa package
> >> with --enable-osmesa
> >> and --with-gallium-drivers=swrast (and DRI and GLX and EGL turned
> >> off), I have just GLSL v1.50
> >> support. No 4.00, not even 3.30! When I tried to use
> >> MESA_GLSL_VERSION_OVERRIDE,
> >> I've got 3.00 ES and that's it.
> >>
> >> So what should I use or how should I compile OSMesa in order to get
> >> support of GLSL v4.00
> >> or at least v3.30 ?
> >
> >
> > Different drivers support different versions of OpenGL.
> >
> > OSMesa w/ llvmpipe/softpipe should support up to GL 3.3 / GLSL 3.30
> (IIRC).
> > But you have to use the new OSMesaCreateContextAttribs() function to get
> a
> > core profile context.
> >
> > -Brian
> >
> _______________________________________________
> mesa-users mailing list
> mesa-users at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20161012/a27fb280/attachment.html>
More information about the mesa-users
mailing list