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