Hi Chai<div><br></div><div>Can you tell me which llvm version are you using ?</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><font class="Apple-style-span" color="#FF0000">When EGL_DRIVERS_PATH is set, it should be prepended to the search<br>
path.  Did you have the variable set when running the demo?</font></span></div><div><br></div><div>I did make install ,hence below paths contain the same libraries.</div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(80, 0, 80); "> /usr/local/lib/egl</span></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><span class="Apple-style-span" style="font-size: 13px; color: rgb(80, 0, 80); ">/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/</span></span></font></div>
<div><br></div><div>thanks </div><div>Muthukumar<br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 4:38 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 class="im">On Wed, Jan 12, 2011 at 6:25 PM, Muthukumar S &lt;<a href="mailto:muthu.smk@gmail.com">muthu.smk@gmail.com</a>&gt; wrote:<br>

&gt; Hi All,<br>
&gt; Thanks for your reply,<br>
&gt; I tried as u said by giving the GALLIUM_DRIVER as softpipe and now glxgears<br>
&gt; was working fine.As u said the problem is in gallium driver .<br>
&gt; Now again i tried by setting GALLIUM_DRIVER=llvmpipe ,and i try to run<br>
&gt; &quot;glxgears&quot; from opengles1 sample but its getting crashed inside the gallium<br>
&gt; llvmpipe driver.<br>
&gt; I just given some prints in the &quot;lp_state_vertex.c&quot; which resides inside<br>
&gt; &quot;mesa-master/src/gallium/drivers/llvmpipe&quot;<br>
&gt; Iam not sure why its crashing in the llvm pipe.<br>
&gt; once again iam informing that my intension is to run any of the<br>
&gt; opengl/opengles application with gallium mesa3d with llvm support and check<br>
&gt; the<br>
&gt; performance in linux (fedora 11).<br>
&gt; NOTE : LLVM libraries used to compile gallium mesa 3d<br>
&gt; : clang_llvm-2.7-i686-linux<br>
&gt; Mesa Version : Mesa 7.10.0<br>
&gt;   $ ./configure --enable-debug --enable-gles1 --enable-gles2<br>
&gt; --enable-gallium-svga --enable-gallium-i915 --enable-gallium-i965<br>
&gt; --enable-gallium-llvm --disable-glut --with-dri-drivers=<br>
&gt; --disable-gallium-radeon --enable-gles-overlay<br>
&gt; --with-state-trackers=egl,vega<br>
</div>I did a clean build with same configure options.  It works here.  It<br>
could be some compatibility issue with your LLVM version, but I am not<br>
familiar with the code there.  You might want to file a bug report.<br>
<br>
I do notice one thing weird in the EGL log below.<br>
<div class="im"><br>
&gt; These are my export variables.:<br>
&gt; --------------------------------------------------<br>
&gt; export<br>
&gt; LD_LIBRARY_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib&quot;<br>
&gt; export EGL_LOG_LEVEL=&quot;debug&quot;<br>
&gt; export GALLIUM_DRIVER=&quot;llvmpipe&quot;<br>
&gt; export<br>
&gt; EGL_DRIVERS_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/&quot;<br>
&gt;<br>
&gt; Here iam sending the log messages.<br>
&gt; ------------------------------------------------------------<br>
&gt; [muthu@localhost opengles1]$ ./gears_x11<br>
&gt; libEGL debug: EGL search path is /usr/local/lib/egl<br>
</div>When EGL_DRIVERS_PATH is set, it should be prepended to the search<br>
path.  Did you have the variable set when running the demo?<br>
<div><div></div><div class="h5">&gt; libEGL debug: added /usr/local/lib/egl/egl_gallium.so to module array<br>
&gt; libEGL debug: added /usr/local/lib/egl/egl_glx.so to module array<br>
&gt; libEGL debug: dlopen(/usr/local/lib/egl/egl_gallium.so)<br>
&gt; libEGL info: use X11 for display 0x871f008<br>
&gt; libEGL debug: searching for pipe module i915<br>
&gt; libEGL warning: failed to create DRM screen<br>
&gt; libEGL warning: use software fallback<br>
&gt; libEGL debug: searching for pipe module swrast<br>
&gt; libEGL debug: loaded /usr/local/lib/egl/pipe_swrast.so<br>
&gt; libEGL debug: the best driver is Gallium (score 100)<br>
&gt; EGL_VERSION = 1.4 (Gallium)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; libEGL debug: the value (0x0) of attribute 0x3025 did not meet the criteria<br>
&gt; (0x1)<br>
&gt; ...<br>
&gt; ...<br>
&gt; ...<br>
&gt; libEGL debug: loaded /usr/local/lib/egl/st_GLESv1_CM.so<br>
&gt; [MUTHU][114][llvmpipe_init_vertex_funcs][lp_state_vertex.c]<br>
&gt; [MUTHU][83][llvmpipe_set_vertex_buffers][lp_state_vertex.c]<br>
&gt; [MUTHU][44][llvmpipe_create_vertex_elements_state][lp_state_vertex.c]<br>
&gt; [MUTHU][61][llvmpipe_bind_vertex_elements_state][lp_state_vertex.c]<br>
&gt; [MUTHU][102][llvmpipe_set_index_buffer][lp_state_vertex.c]<br>
&gt; Segmentation fault<br>
&gt; Here iam sending gdb back trace:<br>
&gt; ------------------------------------------------------<br>
&gt; 255      clipped = fpme-&gt;current_variant-&gt;jit_func_elts(<br>
&gt; &amp;fpme-&gt;llvm-&gt;jit_context,<br>
&gt; (gdb) s<br>
&gt; Program received signal SIGSEGV, Segmentation fault.<br>
&gt; 0x00200539 in draw_llvm_shader_elts ()<br>
&gt; (gdb) bt<br>
&gt; #0  0x00200539 in draw_llvm_shader_elts ()<br>
&gt; #1  0x0104eae9 in llvm_pipeline_generic () at<br>
&gt; draw_pt_fetch_shade_pipeline_llvm.c:255<br>
&gt; #2  0x0104e88e in llvm_middle_end_run () at<br>
&gt; draw_pt_fetch_shade_pipeline_llvm.c:337<br>
&gt; #3  0x01007c42 in vsplit_flush_cache () at draw_pt_vsplit.c:77<br>
&gt; #4  vsplit_segment_cache_ushort () at draw_pt_vsplit.c:173<br>
&gt; #5  0x01006373 in vsplit_segment_simple_ushort ()<br>
&gt;     at<br>
&gt; /home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/src/gallium/auxiliary/draw/draw_pt_vsplit_tmp.h:182<br>
&gt; #6  vsplit_run_ushort () at draw_pt_vsplit.c:111<br>
&gt; #7  0x01001439 in draw_pt_arrays () at draw_pt.c:113<br>
&gt; #8  0x0100174a in draw_vbo () at draw_pt.c:481<br>
&gt; #9  0x00fd3068 in llvmpipe_draw_vbo () at lp_draw_arrays.c:81<br>
&gt; #10 0x009986d4 in st_draw_vbo () at st_draw.c:732<br>
&gt; #11 0x00995610 in vbo_validated_drawrangeelements () at vbo_exec_array.c:793<br>
&gt; #12 0x0099428e in vbo_exec_DrawElements () at vbo_exec_array.c:947<br>
&gt; #13 0x0804a299 in draw_gear () at gears.c:219<br>
&gt; #14 0x0804a004 in gears_draw () at gears.c:268<br>
&gt; #15 0x0804add3 in next_event () at eglut_x11.c:248<br>
&gt; #16 _eglutNativeEventLoop () at eglut_x11.c:242<br>
&gt; #17 0x08049639 in main () at gears.c:378<br>
&gt; It seems the function &quot;draw_llvm_shader_elts() is getting crashed.<br>
&gt;<br>
&gt; can any one help me to fix out this issue.<br>
&gt; Thanks<br>
&gt; Muthukumar<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 11, 2011 at 9:15 PM, Chia-I Wu &lt;<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; 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;&gt; &gt; Iam working in fc-11 ,and i try to compile and run gallium mesa3d with<br>
&gt;&gt; &gt; llvm<br>
&gt;&gt; &gt; support .But i am getting some error while i try to run the opengl or<br>
&gt;&gt; &gt; opengles<br>
&gt;&gt; &gt; application. Can any one suggest me fix the issue .My intension is to<br>
&gt;&gt; &gt; run any of<br>
&gt;&gt; &gt; the opengl/opengles application with gallium mesa3d with llvm support<br>
&gt;&gt; &gt; and check<br>
&gt;&gt; &gt; the performance in linux (fedora 11).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Here the configuration option of gallium mesa3d source<br>
&gt;&gt; &gt; ./configure --enable-debug --enable-gles1 --enable-gles2<br>
&gt;&gt; &gt; --enable-gallium-egl --<br>
&gt;&gt; &gt; enable-gallium-llvm --disable-glut --with-dri-drivers=i915<br>
&gt;&gt; &gt; --disable-gallium-<br>
&gt;&gt; &gt; radeon --enable-gles-overlay<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; config.status: executing configs commands<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        prefix:          /usr/local<br>
&gt;&gt; &gt;        exec_prefix:     ${prefix}<br>
&gt;&gt; &gt;        libdir:          ${exec_prefix}/lib<br>
&gt;&gt; &gt;        includedir:      ${prefix}/include<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        OpenGL:          yes (ES1: yes ES2: yes)<br>
&gt;&gt; &gt;        GLES overlay:    yes<br>
&gt;&gt; &gt;        OpenVG:          no<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        Driver:          dri<br>
&gt;&gt; &gt;        OSMesa:          no<br>
&gt;&gt; &gt;        DRI drivers:     i915<br>
&gt;&gt; &gt;        DRI driver dir:  ${libdir}/dri<br>
&gt;&gt; &gt;        Use XCB:         no<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        GLU:             yes<br>
&gt;&gt; &gt;        GLw:             yes (Motif: no)<br>
&gt;&gt; &gt;        glut:            no<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        EGL:             yes<br>
&gt;&gt; &gt;        EGL platforms:   x11 drm<br>
&gt;&gt; &gt;        EGL drivers:     egl_glx egl_gallium<br>
&gt;&gt; &gt;        EGL Gallium STs: $(GL_LIB) $(GLESv1_CM_LIB) $(GLESv2_LIB)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        llvm:            yes<br>
&gt;&gt; &gt;        llvm-config:<br>
&gt;&gt; &gt; /home/muthu/work/clang_llvm-2.7-i686-linux/bin/llvm-<br>
&gt;&gt; &gt; config<br>
&gt;&gt; &gt;        llvm-version:    2.7<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        Gallium:         yes<br>
&gt;&gt; &gt;        Gallium dirs:    auxiliary drivers state_trackers<br>
&gt;&gt; &gt;        Target dirs:      egl dri-swrast<br>
&gt;&gt; &gt;        Winsys dirs:     sw sw/xlib sw/dri i915/sw<br>
&gt;&gt; &gt;        Driver dirs:     softpipe failover galahad trace rbug identity<br>
&gt;&gt; &gt; llvmpipe<br>
&gt;&gt; &gt; svga i915 i965<br>
&gt;&gt; &gt;        Trackers dirs:   dri egl<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        Shared libs:     yes<br>
&gt;&gt; &gt;        Static libs:     no<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        CFLAGS:          -g -O2 -Wall -Wmissing-prototypes -std=c99<br>
&gt;&gt; &gt; -ffast-math<br>
&gt;&gt; &gt; -fvisibility=hidden -fno-strict-aliasing -g -fPIC<br>
&gt;&gt; &gt;        CXXFLAGS:        -g -O2 -Wall -fvisibility=hidden<br>
&gt;&gt; &gt; -fno-strict-aliasing -<br>
&gt;&gt; &gt; g -fPIC<br>
&gt;&gt; &gt;        Macros:          -D_GNU_SOURCE -DPTHREADS -DDEBUG<br>
&gt;&gt; &gt; -DHAVE_POSIX_MEMALIGN<br>
&gt;&gt; &gt; -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -<br>
&gt;&gt; &gt; DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DGALLIUM_LLVMPIPE<br>
&gt;&gt; &gt; -D__STDC_CONSTANT_MACROS<br>
&gt;&gt; &gt; -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        PYTHON2:         python2<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;        Run &#39;gmake&#39; to build Mesa<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; and i have downloaded the &quot;demo-master&quot; (test apps) source and i<br>
&gt;&gt; &gt; compiled this<br>
&gt;&gt; &gt; apps with the above compiled libraries.<br>
&gt;&gt; &gt; If i try to run &quot;gears_xll&quot; or any other opengles apps iam getting the<br>
&gt;&gt; &gt; following<br>
&gt;&gt; &gt; error with segmentation fault ,I debug it ,the control is going in to<br>
&gt;&gt; &gt; llvm pipe<br>
&gt;&gt; &gt; and then getting crashed with seg fault. before running the application<br>
&gt;&gt; &gt; i have<br>
&gt;&gt; &gt; set the following environment variables.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; export<br>
&gt;&gt; &gt; LD_LIBRARY_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
&gt;&gt; &gt; egl/lib&quot;<br>
&gt;&gt; &gt; export EGL_PLATFORM=&quot;dri&quot;<br>
&gt;&gt; There is no need to set EGL_PLATFORM in this case and generally.<br>
&gt;&gt; &quot;dri&quot; is also an invalid value.<br>
&gt;&gt; &gt; export<br>
&gt;&gt; &gt; LIBGL_DRIVERs_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
&gt;&gt; &gt; egl/lib/gallium/&quot;<br>
&gt;&gt; Without<br>
&gt;&gt;<br>
&gt;&gt;  $ export<br>
&gt;&gt; EGL_DRIVERS_PATH=&quot;/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/&quot;<br>
&gt;&gt;<br>
&gt;&gt; it is likely that the wrong driver is loaded.  You can set<br>
&gt;&gt; EGL_LOG_LEVEL=debug to see which module is dlopen()ed; if you suspect<br>
&gt;&gt; the crash is in llvmpipe, you may set GALLIUM_DRIVER=softpipe to see<br>
&gt;&gt; if it still crashes.  Either way, a gdb backtrace is helpful.<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; # ./gears_x11<br>
&gt;&gt; &gt; libEGL warning: failed to create DRM screen<br>
&gt;&gt; &gt; libEGL warning: use software fallback<br>
&gt;&gt; &gt; EGL_VERSION = 1.4 (Gallium)<br>
&gt;&gt; &gt; Segmentation fault<br>
&gt;&gt; &gt; [muthu@localhost opengles1]$ ./gears_x11<br>
&gt;&gt; &gt; libEGL warning: failed to create DRM screen<br>
&gt;&gt; &gt; libEGL warning: use software fallback<br>
&gt;&gt; &gt; EGL_VERSION = 1.4 (Gallium)<br>
&gt;&gt; &gt; Segmentation fault<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Can any one suggest me fix the above issue .My intension is to run any<br>
&gt;&gt; &gt; of the<br>
&gt;&gt; &gt; opengl/opengles application with gallium mesa3d with llvm support and<br>
&gt;&gt; &gt; check the<br>
&gt;&gt; &gt; performance in linux (fedora 11).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks in advance.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; mesa-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:mesa-users@lists.freedesktop.org">mesa-users@lists.freedesktop.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-users" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; olv@LunarG.com<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anbudan<br>
&gt; S.Muthukumar<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
olv@LunarG.com<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Anbudan <br>S.Muthukumar <br><br>
</div>