<br><div class="gmail_quote">On Fri, Jan 28, 2011 at 4:52 PM, Chia-I Wu <span dir="ltr">&lt;<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Fri, Jan 28, 2011 at 9:22 AM, Jammy Zhou &lt;<a href="mailto:jammy.zhou@linaro.org">jammy.zhou@linaro.org</a>&gt; wrote:<br>
&gt; Just to make sure that this patch was sent out, so replied again here.<br>
&gt;<br>
&gt; Hi Chia-I,<br>
&gt;<br>
&gt; Could you please review this small patch?<br>
</div>Sorry for the slow response.  I recently had a surgery and I was not<br>
able to spend much time on my inbox.  I will start catching up in the<br>
following weekend.<br></blockquote><div><br>Take care and have a good rest. ;)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
When _glapi_get_proc_address is missing, I think egl_dri2 should<br>
dlopen libglapi.so.  If --enable-shared-glapi is not given (libGL.so<br>
does not use the shared libglapi.so), egl_dri2 should disable<br>
EGL_OPENGL_BIT as libglapi.so and libGL.so are conflicting.<br></blockquote><div><br>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 <a href="http://libglapi.so/libGL.so">libglapi.so/libGL.so</a> 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&#39;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&#39;m curious for what is blocking it.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
&gt; Regards,<br>
&gt; Jammy<br>
&gt;<br>
&gt; On Thu, Jan 27, 2011 at 1:32 PM, Jammy Zhou &lt;<a href="mailto:jammy.zhou@linaro.org">jammy.zhou@linaro.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; egl_dri2 has been made built-in driver of EGL recently, and it depends on<br>
&gt;&gt; _glapi_get_proc_address symbol, which is defined in libglapi.so. So add<br>
&gt;&gt; the dependency of libglapi.so to libEGL<br>
&gt;&gt;<br>
&gt;&gt; Signed-off-by: Jammy Zhou &lt;<a href="mailto:jammy.zhou@linaro.org">jammy.zhou@linaro.org</a>&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;  src/egl/main/Makefile |    2 +-<br>
&gt;&gt;  1 files changed, 1 insertions(+), 1 deletions(-)<br>
&gt;&gt;<br>
&gt;&gt; diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile<br>
&gt;&gt; index c710631..fcbce2b 100644<br>
&gt;&gt; --- a/src/egl/main/Makefile<br>
&gt;&gt; +++ b/src/egl/main/Makefile<br>
&gt;&gt; @@ -58,7 +58,7 @@ LOCAL_LIBS =<br>
&gt;&gt;  ifeq ($(filter dri2, $(EGL_DRIVERS_DIRS)),dri2)<br>
&gt;&gt;  LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_DRI2<br>
&gt;&gt;  LOCAL_LIBS += $(TOP)/src/egl/drivers/dri2/libegl_dri2.a<br>
&gt;&gt; -EGL_LIB_DEPS += $(XCB_DRI2_LIBS) $(LIBUDEV_LIBS) $(DLOPEN_LIBS)<br>
&gt;&gt; $(LIBDRM_LIB)<br>
&gt;&gt; +EGL_LIB_DEPS += $(XCB_DRI2_LIBS) $(LIBUDEV_LIBS) $(DLOPEN_LIBS)<br>
&gt;&gt; $(LIBDRM_LIB) -l$(GLAPI_LIB)<br>
&gt;&gt;  endif<br>
&gt;&gt;  ifeq ($(filter glx, $(EGL_DRIVERS_DIRS)),glx)<br>
&gt;&gt;  LOCAL_CFLAGS += -D_EGL_BUILT_IN_DRIVER_GLX<br>
&gt;&gt; --<br>
&gt;&gt; 1.7.1<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
olv@LunarG.com<br>
</font></blockquote></div><br>