[Mesa-dev] [PATCH 1/1] Link libEGL.so against libglapi.so
jammy.zhou at linaro.org
Fri Jan 28 01:51:52 PST 2011
On Fri, Jan 28, 2011 at 4:52 PM, Chia-I Wu <olvaffe at gmail.com> wrote:
> On Fri, Jan 28, 2011 at 9:22 AM, Jammy Zhou <jammy.zhou at linaro.org> wrote:
> > Just to make sure that this patch was sent out, so replied again here.
> > Hi Chia-I,
> > Could you please review this small patch?
> Sorry for the slow response. I recently had a surgery and I was not
> able to spend much time on my inbox. I will start catching up in the
> following weekend.
Take care and have a good rest. ;)
> When _glapi_get_proc_address is missing, I think egl_dri2 should
> dlopen libglapi.so. If --enable-shared-glapi is not given (libGL.so
> does not use the shared libglapi.so), egl_dri2 should disable
> EGL_OPENGL_BIT as libglapi.so and libGL.so are conflicting.
Hmm... The problem happens for me when load libEGL.so before libGLESv2.so.
Of course the problem can be avoided in application side to load
libGLESv2.so first. But I think we should better solve the dependency of
libEGL.so (egl_dri2) on libglapi.so/libGL.so in mesa. If we can make
libGL.so use libglapi.so, the issue becomes simple. Otherwise, it may be
not easy to handle, because in that case we don't know if libGL.so will be
used or not when load libEGL.so. Do you have plan to make libGL.so use
libglapi.so by default? And I'm curious for what is blocking it.
> > Regards,
> > Jammy
> > On Thu, Jan 27, 2011 at 1:32 PM, Jammy Zhou <jammy.zhou at linaro.org>
> >> egl_dri2 has been made built-in driver of EGL recently, and it depends
> >> _glapi_get_proc_address symbol, which is defined in libglapi.so. So add
> >> the dependency of libglapi.so to libEGL
> >> Signed-off-by: Jammy Zhou <jammy.zhou at linaro.org>
> >> ---
> >> src/egl/main/Makefile | 2 +-
> >> 1 files changed, 1 insertions(+), 1 deletions(-)
> >> diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
> >> index c710631..fcbce2b 100644
> >> --- a/src/egl/main/Makefile
> >> +++ b/src/egl/main/Makefile
> >> @@ -58,7 +58,7 @@ LOCAL_LIBS =
> >> ifeq ($(filter dri2, $(EGL_DRIVERS_DIRS)),dri2)
> >> LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2
> >> LOCAL_LIBS += $(TOP)/src/egl/drivers/dri2/libegl_dri2.a
> >> -EGL_LIB_DEPS += $(XCB_DRI2_LIBS) $(LIBUDEV_LIBS) $(DLOPEN_LIBS)
> >> $(LIBDRM_LIB)
> >> +EGL_LIB_DEPS += $(XCB_DRI2_LIBS) $(LIBUDEV_LIBS) $(DLOPEN_LIBS)
> >> $(LIBDRM_LIB) -l$(GLAPI_LIB)
> >> endif
> >> ifeq ($(filter glx, $(EGL_DRIVERS_DIRS)),glx)
> >> LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_GLX
> >> --
> >> 1.7.1
> olv at LunarG.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev