[Mesa-users] Mesa -- Compile with Static Libraries (Gallium Softpipe)
Michael H. Bao
mike.bao at berkeley.edu
Fri Jul 5 01:03:38 PDT 2013
Hey all,
I am trying to compile Mesa3d (v9.1.3 and I've tried with v9.1.4 too) and
I've run into some issues. Everything compiles fine and I am able to
generate the libEGL.a, libGLESv1_CM.a, and egl_gallium.a files and I am
able to link them to my program and have my program compile fine. However I
seem to be getting an error where the dispatch table is always the NoOp
table. Is there anything I could be doing wrong?
My configure command is the following:
./configure --enable-debug --enable-egl --enable-gles1 --enable-gallium-egl
--disable-gallium-gbm --disable-gallium-llvm --with-gallium-drivers=swrast
--enable-static --disable-dri --disable-shared
I modify some Makefiles so that Gallium becomes a built-in driver for EGL
by adding -D_EGL_BUILT_IN_DRIVER_GALLIUM and
-D_EGL_MAIN=_eglBuiltInDriverGALLIUM in the appropriate Makefiles.
I tried to debug the u_current_set function where the dispatch table gets
set and when I get into it, the tbl variable is a pointer to the right
dispatch table (as far as I can tell) and at that point _glapi_Dispatch is
the no-op table. As I step through, I reach the line where u_current_table
= **** is called and then after that, _glapi_Dispatch is still the no-op
table so I'm kind of confused as to what is going on here.
Any help would be most appreciated!
Thanks,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-users/attachments/20130705/6ded383b/attachment.html>
More information about the mesa-users
mailing list