<div class="gmail_quote"><br><div>Hi All,</div><div><br></div><div><br></div><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><div><div><br></div><div><br></div><div><div><b>These are my export variables</b>.:</div><div class="im"><div>--------------------------------------------------</div><div><br></div><div>export LD_LIBRARY_PATH="/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib"</div>
</div><div>export EGL_LOG_LEVEL="debug"</div><div>export GALLIUM_DRIVER="llvmpipe"</div><div class="im"><div>export EGL_DRIVERS_PATH="/home/muthu/work/game/gallium/mesa-master-llvm-gcc-egl/lib/egl/"</div>
</div></div><div><br></div><div>If tried giving the GALLIUM_DRIVER as softpipe and glxgears was working fine.</div>
<div><br></div><div>Now i tried by setting GALLIUM_DRIVER=llvmpipe ,and i try to run "glxgears" from opengles1 sample but its getting crashed inside the gallium llvmpipe driver.</div><div>I just given some prints in the "lp_state_vertex.c" which resides inside "mesa-master/src/gallium/drivers/llvmpipe"</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 class="im"><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><div><b>NOTE : </b>LLVM libraries used to compile gallium mesa 3d : clang_llvm-2.7-i686-linux</div><div><br></div><div><b><br></b></div><div><b>Here iam sending the log messages.</b></div>
<div>------------------------------------------------------------</div><div class="im"><div><br></div><div>[muthu@localhost opengles1]$ ./gears_x11 </div></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 class="im"><div>libEGL warning: failed to create DRM screen</div><div>libEGL warning: use software fallback</div>
</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 class="im"><div>EGL_VERSION = 1.4 (Gallium)</div></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 style="white-space:pre-wrap">        </span> clipped = fpme->current_variant->jit_func_elts( &fpme->llvm->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 "draw_llvm_shader_elts() is getting crashed. </div><div><br></div><div><div>once again iam informing that my intension is to run any of the</div>
<div class="im"><div>opengl/opengles application with gallium mesa3d with llvm support and check the</div><div>performance in linux (fedora 11).</div></div></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><div></div><div class="h5"><div><br></div><br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 9:15 PM, Chia-I Wu <span dir="ltr"><<a href="mailto:olvaffe@gmail.com" target="_blank">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><div></div><div>On Tue, Jan 11, 2011 at 10:00 PM, Muthukumar <<a href="mailto:muthu.smk@gmail.com" target="_blank">muthu.smk@gmail.com</a>> wrote:<br>
> Iam working in fc-11 ,and i try to compile and run gallium mesa3d with llvm<br>
> support .But i am getting some error while i try to run the opengl or opengles<br>
> application. Can any one suggest me fix the issue .My intension is to run any of<br>
> the opengl/opengles application with gallium mesa3d with llvm support 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 --enable-gallium-egl --<br>
> enable-gallium-llvm --disable-glut --with-dri-drivers=i915 --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: /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 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 -ffast-math<br>
> -fvisibility=hidden -fno-strict-aliasing -g -fPIC<br>
> CXXFLAGS: -g -O2 -Wall -fvisibility=hidden -fno-strict-aliasing -<br>
> g -fPIC<br>
> Macros: -D_GNU_SOURCE -DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN<br>
> -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -<br>
> DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DGALLIUM_LLVMPIPE -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 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 following<br>
> error with segmentation fault ,I debug it ,the control is going in to llvm pipe<br>
> and then getting crashed with seg fault. before running the application i have<br>
> set the following environment variables.<br>
><br>
> export LD_LIBRARY_PATH="/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
> egl/lib"<br>
> export EGL_PLATFORM="dri"<br>
</div></div>There is no need to set EGL_PLATFORM in this case and generally.<br>
"dri" is also an invalid value.<br>
<div>> export LIBGL_DRIVERs_PATH="/home/muthu/work/game/gallium/mesa-master-llvm-gcc-<br>
> egl/lib/gallium/"<br>
</div>Without<br>
<br>
$ export 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>
<div><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 of the<br>
> opengl/opengles application with gallium mesa3d with llvm support and check the<br>
> performance in linux (fedora 11).<br>
><br>
</div>> Thanks in advance.<br>
><br>
><br>
> _______________________________________________<br>
> mesa-users mailing list<br>
> <a href="mailto:mesa-users@lists.freedesktop.org" target="_blank">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>
<font color="#888888"><br>
<br>
<br>
--<br>
olv@LunarG.com<br>
</font></blockquote></div><br><br clear="all"><br></div></div>-- <br>Anbudan <br><font color="#888888">S.Muthukumar <br><br>
</font></div><br><br clear="all"><br>-- <br>Anbudan <br>S.Muthukumar <br><br>