<div dir="ltr">I don't think glxgears is the best benchmark for what is a "typical" OpenGL load (if there is a "typical"). The 60 FPS with your hardware driver sounds suspiciously like the refresh rate of your screen; perhaps it is synchronized with the vertical retrace? Since I'm assuming you want to find the fastest driver, why not try a free and open source game like openarena to give you a better idea of how they actually perform.<div>
<br></div><div><br></div><div style>Patrick</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 6, 2013 at 9:33 AM, Divick Kishore <span dir="ltr"><<a href="mailto:divick.kishore@gmail.com" target="_blank">divick.kishore@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I am trying to build s/w only mesa driver. It seems that the<br>
performance of software only renderer (compiled with<br>
--with-driver=xlib) is higher than that of h/w drivers. Could someone<br>
please help me understand what is causing this or if it is expected?<br>
<br>
I see that dri based s/w renderer is also slower than xlib/swrast<br>
driver. So how does dri based s/w rendering work and why is it slower<br>
than xlib/swrast driver?<br>
<br>
I presume that --with-driver=xlib builds s/w only renderer. Please<br>
correct me if I am wrong.<br>
<br>
./configure -build=x86_64-linux-gnu --with-driver=dri<br>
--with-dri-drivers="i915 swrast"<br>
--with-dri-driverdir=/home/divick/work/mesa/mesa-8.0.5/build/dri/x86_64-linux-gnu/<br>
--with-dri-searchpath='/home/divick/work/mesa/mesa-8.0.5/build/dri/x86_64-linux-gnu/'<br>
--enable-glx-tls --enable-shared-glapi --enable-texture-float<br>
--enable-xa --enable-driglx-direct --with-egl-platforms="x11 drm"<br>
--enable-gallium-llvm --with-gallium-drivers="swrast i915"<br>
--enable-gles1 --enable-gles2 --enable-openvg --enable-gallium-egl<br>
--disable-glu CFLAGS="-Wall -g -O2" CXXFLAGS="-Wall -g -O2"<br>
<br>
with LIBGL_ALWAYS_SOFTWARE=1<br>
glxgears reports:<br>
<br>
GL_RENDERER = Software Rasterizer<br>
GL_VERSION = 2.1 Mesa 8.0.5<br>
GL_VENDOR = Mesa Project<br>
<br>
fps: ~ 490 fps<br>
<br>
Without LIBGL_ALWAYS_SOFTWARE set:<br>
<br>
GL_RENDERER = Mesa DRI Intel(R) Sandybridge Mobile<br>
GL_VERSION = 3.0 Mesa 8.0.5<br>
GL_VENDOR = Tungsten Graphics, Inc<br>
<br>
fps: ~ 60<br>
<br>
When compiled with configure options<br>
<br>
--build=x86_64-linux-gnu --disable-egl --with-gallium-drivers=<br>
--with-driver=xlib --disable-egl CFLAGS="-Wall -g -O2" CXXFLAGS="-Wall<br>
-g -O2"<br>
<br>
glxgears reports:<br>
<br>
GL_RENDERER = Mesa X11<br>
GL_VERSION = 2.1 Mesa 8.0.5<br>
GL_VENDOR = Brian Paul<br>
<br>
fps: ~1600<br>
<br>
With drivers installed on system and with LIBGL_ALWAYS_SOFTWARE=1:<br>
<br>
GL_RENDERER = Gallium 0.4 on llvmpipe (LLVM 0x209)<br>
GL_VERSION = 2.1 Mesa 8.0.5<br>
GL_VENDOR = VMware, Inc.<br>
<br>
fps: ~ 1130<br>
<br>
Thanks & Regards,<br>
Divick<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div><br></div>