<div>Hi All,</div><div><br></div><div><div>Thanks for your reply,</div><div><br></div><div>I tried as u said by giving the GALLIUM_DRIVER as softpipe and now glxgears was working fine.As u said the problem is in gallium driver .</div>
<div><br></div><div>Now again i tried by setting GALLIUM_DRIVER=llvmpipe ,and i try to run &quot;glxgears&quot; from opengles1 sample but its getting crashed inside the gallium llvmpipe driver.</div><div>I just given some prints in the &quot;lp_state_vertex.c&quot; which resides inside &quot;mesa-master/src/gallium/drivers/llvmpipe&quot;</div>
<div>Iam not sure why its crashing in the llvm pipe.</div><div>once again iam informing that my intension is to run any of the</div><div>opengl/opengles application with gallium mesa3d with llvm support and check the</div>
<div>performance in linux (fedora 11).</div><div><br></div><div><b>NOTE : </b>LLVM libraries used to compile gallium mesa 3d : clang_llvm-2.7-i686-linux</div><div><br></div><div><b>Mesa Version : Mesa 7.10.0</b></div><div>
<br></div><div><div>  $ ./configure --enable-debug --enable-gles1 --enable-gles2 --enable-gallium-svga --enable-gallium-i915 --enable-gallium-i965 --enable-gallium-llvm --disable-glut --with-dri-drivers= --disable-gallium-radeon --enable-gles-overlay --with-state-trackers=egl,vega</div>
</div><div><br></div><div><b>These are my export variables</b>.:</div><div>--------------------------------------------------</div><div><br></div><div>export LD_LIBRARY_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib&quot;</div>
<div>export EGL_LOG_LEVEL=&quot;debug&quot;</div><div>export GALLIUM_DRIVER=&quot;llvmpipe&quot;</div><div>export EGL_DRIVERS_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/&quot;</div><div><br>
</div><div><br></div><div><b>Here iam sending the log messages.</b></div><div>------------------------------------------------------------</div><div><br></div><div>[muthu@localhost opengles1]$ ./gears_x11 </div><div>libEGL debug: EGL search path is /usr/local/lib/egl</div>
<div>libEGL debug: added /usr/local/lib/egl/egl_gallium.so to module array</div><div>libEGL debug: added /usr/local/lib/egl/egl_glx.so to module array</div><div>libEGL debug: dlopen(/usr/local/lib/egl/egl_gallium.so)</div>
<div>libEGL info: use X11 for display 0x871f008</div><div>libEGL debug: searching for pipe module i915</div><div>libEGL warning: failed to create DRM screen</div><div>libEGL warning: use software fallback</div><div>libEGL debug: searching for pipe module swrast</div>
<div>libEGL debug: loaded /usr/local/lib/egl/pipe_swrast.so</div><div>libEGL debug: the best driver is Gallium (score 100)</div><div>EGL_VERSION = 1.4 (Gallium)</div><div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div>
<div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div><div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div><div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div>
<div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div><div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div><div>libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria (0x1)</div>
<div>...</div><div>...</div><div>...</div><div>libEGL debug: loaded /usr/local/lib/egl/st_GLESv1_CM.so</div><div>[MUTHU][114][llvmpipe_init_vertex_funcs][lp_state_vertex.c] </div><div>[MUTHU][83][llvmpipe_set_vertex_buffers][lp_state_vertex.c] </div>
<div>[MUTHU][44][llvmpipe_create_vertex_elements_state][lp_state_vertex.c] </div><div>[MUTHU][61][llvmpipe_bind_vertex_elements_state][lp_state_vertex.c] </div><div>[MUTHU][102][llvmpipe_set_index_buffer][lp_state_vertex.c] </div>
<div>Segmentation fault</div></div><div><br></div><div><b>Here iam sending gdb back trace:</b></div><div>------------------------------------------------------</div><div><div>255<span class="Apple-tab-span" style="white-space:pre">        </span>      clipped = fpme-&gt;current_variant-&gt;jit_func_elts( &amp;fpme-&gt;llvm-&gt;jit_context,</div>
<div>(gdb) s</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x00200539 in draw_llvm_shader_elts ()</div><div>(gdb) bt</div><div>#0  0x00200539 in draw_llvm_shader_elts ()</div><div>
#1  0x0104eae9 in llvm_pipeline_generic () at draw_pt_fetch_shade_pipeline_llvm.c:255</div><div>#2  0x0104e88e in llvm_middle_end_run () at draw_pt_fetch_shade_pipeline_llvm.c:337</div><div>#3  0x01007c42 in vsplit_flush_cache () at draw_pt_vsplit.c:77</div>
<div>#4  vsplit_segment_cache_ushort () at draw_pt_vsplit.c:173</div><div>#5  0x01006373 in vsplit_segment_simple_ushort ()</div><div>    at /home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h:182</div>
<div>#6  vsplit_run_ushort () at draw_pt_vsplit.c:111</div><div>#7  0x01001439 in draw_pt_arrays () at draw_pt.c:113</div><div>#8  0x0100174a in draw_vbo () at draw_pt.c:481</div><div>#9  0x00fd3068 in llvmpipe_draw_vbo () at lp_draw_arrays.c:81</div>
<div>#10 0x009986d4 in st_draw_vbo () at st_draw.c:732</div><div>#11 0x00995610 in vbo_validated_drawrangeelements () at vbo_exec_array.c:793</div><div>#12 0x0099428e in vbo_exec_DrawElements () at vbo_exec_array.c:947</div>
<div>#13 0x0804a299 in draw_gear () at gears.c:219</div><div>#14 0x0804a004 in gears_draw () at gears.c:268</div><div>#15 0x0804add3 in next_event () at eglut_x11.c:248</div><div>#16 _eglutNativeEventLoop () at eglut_x11.c:242</div>
<div>#17 0x08049639 in main () at gears.c:378</div></div><div><br></div><div>It seems the function &quot;draw_llvm_shader_elts() is getting crashed. </div><div><br></div><div><br></div><div>can any one help me to fix out this issue.</div>
<div><br></div><div>Thanks</div><div>Muthukumar</div><div><br></div><br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 9:15 PM, Chia-I Wu <span dir="ltr">&lt;<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Tue, Jan 11, 2011 at 10:00 PM, Muthukumar &lt;<a href="mailto:muthu.smk@gmail.com">muthu.smk@gmail.com</a>&gt; wrote:<br>

&gt; Iam working in fc-11 ,and i try to compile and run gallium mesa3d with llvm<br>
&gt; support .But i am getting some error while i try to run the opengl or opengles<br>
&gt; application. Can any one suggest me fix the issue .My intension is to run any of<br>
&gt; the opengl/opengles application with gallium mesa3d with llvm support and check<br>
&gt; the performance in linux (fedora 11).<br>
&gt;<br>
&gt; Here the configuration option of gallium mesa3d source<br>
&gt; ./configure --enable-debug --enable-gles1 --enable-gles2 --enable-gallium-egl --<br>
&gt; enable-gallium-llvm --disable-glut --with-dri-drivers=i915 --disable-gallium-<br>
&gt; radeon --enable-gles-overlay<br>
&gt;<br>
&gt;<br>
&gt; config.status: executing configs commands<br>
&gt;<br>
&gt;        prefix:          /usr/local<br>
&gt;        exec_prefix:     ${prefix}<br>
&gt;        libdir:          ${exec_prefix}/lib<br>
&gt;        includedir:      ${prefix}/include<br>
&gt;<br>
&gt;        OpenGL:          yes (ES1: yes ES2: yes)<br>
&gt;        GLES overlay:    yes<br>
&gt;        OpenVG:          no<br>
&gt;<br>
&gt;        Driver:          dri<br>
&gt;        OSMesa:          no<br>
&gt;        DRI drivers:     i915<br>
&gt;        DRI driver dir:  ${libdir}/dri<br>
&gt;        Use XCB:         no<br>
&gt;<br>
&gt;        GLU:             yes<br>
&gt;        GLw:             yes (Motif: no)<br>
&gt;        glut:            no<br>
&gt;<br>
&gt;        EGL:             yes<br>
&gt;        EGL platforms:   x11 drm<br>
&gt;        EGL drivers:     egl_glx egl_gallium<br>
&gt;        EGL Gallium STs: $(GL_LIB) $(GLESv1_CM_LIB) $(GLESv2_LIB)<br>
&gt;<br>
&gt;        llvm:            yes<br>
&gt;        llvm-config:     /home/muthu/work/clang_llvm-2.7-i686-linux/bin/llvm-<br>
&gt; config<br>
&gt;        llvm-version:    2.7<br>
&gt;<br>
&gt;        Gallium:         yes<br>
&gt;        Gallium dirs:    auxiliary drivers state_trackers<br>
&gt;        Target dirs:      egl dri-swrast<br>
&gt;        Winsys dirs:     sw sw/xlib sw/dri i915/sw<br>
&gt;        Driver dirs:     softpipe failover galahad trace rbug identity llvmpipe<br>
&gt; svga i915 i965<br>
&gt;        Trackers dirs:   dri egl<br>
&gt;<br>
&gt;        Shared libs:     yes<br>
&gt;        Static libs:     no<br>
&gt;<br>
&gt;        CFLAGS:          -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math<br>
&gt; -fvisibility=hidden -fno-strict-aliasing -g -fPIC<br>
&gt;        CXXFLAGS:        -g -O2 -Wall -fvisibility=hidden -fno-strict-aliasing -<br>
&gt; g -fPIC<br>
&gt;        Macros:          -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN<br>
&gt; -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -<br>
&gt; DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS<br>
&gt; -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM<br>
&gt;<br>
&gt;        PYTHON2:         python2<br>
&gt;<br>
&gt;        Run &#39;gmake&#39; to build Mesa<br>
&gt;<br>
&gt;<br>
&gt; and i have downloaded the &quot;demo-master&quot; (test apps) source and i compiled this<br>
&gt; apps with the above compiled libraries.<br>
&gt; If i try to run &quot;gears_xll&quot; or any other opengles apps iam getting the following<br>
&gt; error with segmentation fault ,I debug it ,the control is going in to llvm pipe<br>
&gt; and then getting crashed with seg fault. before running the application i have<br>
&gt; set the following environment variables.<br>
&gt;<br>
&gt; export LD_LIBRARY_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
&gt; egl/lib&quot;<br>
&gt; export EGL_PLATFORM=&quot;dri&quot;<br>
</div></div>There is no need to set EGL_PLATFORM in this case and generally.<br>
&quot;dri&quot; is also an invalid value.<br>
<div class="im">&gt; export LIBGL_DRIVERs_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
&gt; egl/lib/gallium/&quot;<br>
</div>Without<br>
<br>
  $ export EGL_DRIVERS_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/&quot;<br>
<br>
it is likely that the wrong driver is loaded.  You can set<br>
EGL_LOG_LEVEL=debug to see which module is dlopen()ed; if you suspect<br>
the crash is in llvmpipe, you may set GALLIUM_DRIVER=softpipe to see<br>
if it still crashes.  Either way, a gdb backtrace is helpful.<br>
<div class="im"><br>
&gt;<br>
&gt;<br>
&gt; # ./gears_x11<br>
&gt; libEGL warning: failed to create DRM screen<br>
&gt; libEGL warning: use software fallback<br>
&gt; EGL_VERSION = 1.4 (Gallium)<br>
&gt; Segmentation fault<br>
&gt; [muthu@localhost opengles1]$ ./gears_x11<br>
&gt; libEGL warning: failed to create DRM screen<br>
&gt; libEGL warning: use software fallback<br>
&gt; EGL_VERSION = 1.4 (Gallium)<br>
&gt; Segmentation fault<br>
&gt;<br>
&gt;<br>
&gt; Can any one suggest me fix the above issue .My intension is to run any of the<br>
&gt; opengl/opengles application with gallium mesa3d with llvm support and check the<br>
&gt; performance in linux (fedora 11).<br>
&gt;<br>
</div>&gt; Thanks in advance.<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; mesa-users mailing list<br>
&gt; <a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
olv@LunarG.com<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Anbudan <br>S.Muthukumar <br><br>