<div dir="ltr">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:<br><br><span style="font-family:monospace,monospace">./configure \<br> --enable-opengl --disable-gles1 --disable-gles2 \<br> --disable-va --disable-xvmc --disable-vdpau \<br> --enable-shared-glapi \<br> --disable-texture-float --with-sha1=libcrypto \<br> --enable-gallium-llvm --enable-llvm-shared-libs \<br> --with-gallium-drivers=swrast,swr \<br> --disable-egl --with-egl-platforms= --disable-gbm \ <br> --disable-dri --with-dri-drivers= \<br> --disable-glx \<br> --disable-osmesa --enable-gallium-osmesa</span><br><br><br><br><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">----------<br>Chuck Atkins<br>Staff R&D Engineer, Scientific Computing<br>Kitware, Inc.<br><br></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Aug 5, 2016 at 8:39 AM, Yury Voronov <span dir="ltr"><<a href="mailto:yvoronov@artec-group.com" target="_blank">yvoronov@artec-group.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Brian,<br>
<span class=""><br>
> Different drivers support different versions of OpenGL.<br>
><br>
> OSMesa w/ llvmpipe/softpipe should support up to GL 3.3 / GLSL 3.30 (IIRC).<br>
> But you have to use the new OSMesaCreateContextAttribs() function to get a<br>
> core profile context.<br>
<br>
</span>Thank you!<br>
<br>
Now how should I compile Mesa to achieve this? I tried something like<br>
--disable-dri --disable-driglx-direct --disable-egl --enable-glx<br>
--enable-texture-float --enable-osmesa --with-gallium-drivers=swrast<br>
<br>
or --with-gallium-drivers=swr<br>
<br>
Both gave me GL 2.1 / GLSL 1.20 with OSMESA_COMPAT_PROFILE and failed<br>
with OSMESA_CORE_PROFILE<br>
<br>
--with-gallium-drivers=<wbr>softpipe or --with-gallium-drivers=<wbr>llvmpipe<br>
simply does not go through.<br>
<br>
--enable-gallium-osmesa does not seem to work also.<br>
<br>
Any ideas?<br>
<br>
Thanks,<br>
Yury<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jul 26, 2016 at 2:52 AM, Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>> wrote:<br>
> On 07/18/2016 06:50 AM, Yury Voronov wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I am quite new to Mesa, so would someone please help me understand the<br>
>> things?<br>
>><br>
>> I have some code for texture processing working on real GPUs that<br>
>> extensively use shader<br>
>> features. Now I'd like to put it on a back-end server with no display<br>
>> (or even video card).<br>
>> And I am going to use Off-Screen Mesa for this. The latest release<br>
>> 12.0.1 claimed to support<br>
>> OpenGL 4.3 - so I supposed GLSL 4.3 is also supported. However,<br>
>> Shading Language Support<br>
>> page states that only version 3.30 is supported.<br>
>><br>
>> In the same time, when I compiled and linked the latest Mesa package<br>
>> with --enable-osmesa<br>
>> and --with-gallium-drivers=swrast (and DRI and GLX and EGL turned<br>
>> off), I have just GLSL v1.50<br>
>> support. No 4.00, not even 3.30! When I tried to use<br>
>> MESA_GLSL_VERSION_OVERRIDE,<br>
>> I've got 3.00 ES and that's it.<br>
>><br>
>> So what should I use or how should I compile OSMesa in order to get<br>
>> support of GLSL v4.00<br>
>> or at least v3.30 ?<br>
><br>
><br>
> Different drivers support different versions of OpenGL.<br>
><br>
> OSMesa w/ llvmpipe/softpipe should support up to GL 3.3 / GLSL 3.30 (IIRC).<br>
> But you have to use the new OSMesaCreateContextAttribs() function to get a<br>
> core profile context.<br>
><br>
> -Brian<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>
</div></div></blockquote></div><br></div></div>