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