<div dir="ltr"><div><div><div>Hello Brian. <br><br></div>The code querying the renderer simply gives : <br>OSMesa Renderer = Mesa OffScreen<br><br></div><div>It is not clear whether my machine uses swrast or not. <br><br><br>
</div><div><br></div>By the way, I am trying to build Mesa 9.1.2 with OSMesa option. <br><br></div>./configure --enable-osmesa gives me the following results:<br><div><div><br> OSMesa: libOSMesa<br> DRI drivers: i915 i965 nouveau r200 radeon swrast<br>
DRI driver dir: ${libdir}/dri<br> GLX: DRI-based<br><br></div><div>Does this configuration build OSMesa with llvmpipe you mentioned ?<br><br></div><div>Best regards, <br>Wonwoo <br></div><div><br><div><div><div class="gmail_extra">
<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Message: 2<br>
Date: Mon, 08 Jul 2013 16:19:00 -0600<br>
From: Brian Paul <<a href="mailto:brianp@vmware.com">brianp@vmware.com</a>><br>
To: <a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
Subject: Re: [Mesa-users] Rendering speed of OSMesa ?<br>
Message-ID: <<a href="mailto:51DB3AD4.6090204@vmware.com">51DB3AD4.6090204@vmware.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
In your app, try printf("renderer = %s\n", (char *)<br>
glGetString(GL_RENDERER));<br>
<br>
I suspect you're using swrast. I think you'd have to grab the latest<br>
Mesa from git to get the llvmpipe version of OSMesa.<br>
<br>
-Brian<br>
<br>
On 07/08/2013 03:40 PM, Wonwoo Lee wrote:<br>
> Hello Brian.<br>
><br>
> I installed OSMesa on my ubuntu machine by using 'apt-get<br>
> install libosmesa6-dev'<br>
> glxinfo gives me : OpenGL version string: 2.1 Mesa 9.0.3<br>
> Regarding drivers, I have no idea because I'm not familiar with Mesa /<br>
> OSMesa libraries...<br>
> How do I check the driver I'm using ?<br>
><br>
> Best,<br>
> Wonwoo Lee<br>
><br>
><br>
>><br>
>> On 07/08/2013 12:26 AM, Wonwoo Lee wrote:<br>
>>> Hello.<br>
>>><br>
>>> I tried OSMesa to render a simple scene where a textured rectangle and a<br>
>>> cylinder exist.<br>
>>> The size of render buffer was 640x480.<br>
>>><br>
>>> I measured execution time of rendering several times. The speed of<br>
>>> rendering seems to depend on the number of pixels occupied by an object<br>
>>> in a rendered scene. Smaller object resulted in faster speed.<br>
>><br>
>> That's usually how it works w/ software rendering.<br>
>><br>
>><br>
>>> My test results showed the rendering took about 20ms in average to<br>
>>> render a scene. It was much slower than I expected although it contains<br>
>>> a simple object.<br>
>>><br>
>>> Is this a typical speed of OSMesa rendering ?<br>
>><br>
>> Are you using the swrast driver? Which version of Mesa? I added<br>
>> support for using llvmpipe with OSMesa a few months ago. That would<br>
>> give you the best performance.<br>
>><br>
>> -Brian<br>
><br>
><br>
</blockquote></div><br></div></div></div></div></div></div>