<br><br><div class="gmail_quote">2010/12/9 Chia-I Wu <span dir="ltr">&lt;<a href="mailto:olvaffe@gmail.com">olvaffe@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/12/9 Kristian Høgsberg &lt;<a href="mailto:krh@bitplanet.net">krh@bitplanet.net</a>&gt;:<br>
<div><div></div><div class="h5">&gt; 2010/12/9 Jammy Zhou &lt;<a href="mailto:jammy.zhou@linaro.org">jammy.zhou@linaro.org</a>&gt;:<br>
&gt;&gt; Hi All,<br>
&gt;&gt;<br>
&gt;&gt; Currently I am doing some experiments with mesa 7.9 driver to check the<br>
&gt;&gt; renderer info of underlying OpenGL and OpenGL ES2.0 drivers to decide which<br>
&gt;&gt; driver to use at runtime. With my code attached, the renderer info for GLES2<br>
&gt;&gt; can be got successfully, and although the EGL and GLES2 libraries are<br>
&gt;&gt; unloaded before creating the GLX context, glGetString(GL_RENDERER) for<br>
&gt;&gt; OpenGL still returns NULL. After enable MESA_DEBUG, I found the error<br>
&gt;&gt; message &quot;GL User Error: calling GL function without a rendering context&quot;,<br>
&gt;&gt; and many warnings as &quot;Mesa warning: failed to remap ....&quot;.  I also changed<br>
&gt;&gt; the sequence for GL and GLES2, but got similar results. If do separately,<br>
&gt;&gt; both renderer info can be got successfully. It seems that EGL/GLES2 and<br>
&gt;&gt; GLX/GL affects each other in this case, may be related to library<br>
&gt;&gt; load/unload(?). Do you guys have some ideas to solve this problem?<br>
&gt;<br>
&gt; Yes, this is a limitation in the way the dri driver implements<br>
&gt; different APIs.  We have a few global tables that get initialized with<br>
&gt; API specific data, so if you switch to a different GL API later, it<br>
&gt; will give you the remapping errors you saw.<br>
&gt; It would be nice to fix, but I don&#39;t know that anybody is looking into it.<br>
</div></div>16ee7a55ae269612263468195f2af998cb9ef695 should solve the remapping<br>
errors.  It allows contexts of different client APIs to coexist.  But<br>
yes, there are still some global tables (e.g. glGet* table) that are<br>
not multiple-API aware.  There are also places that API check is done<br>
at compile time...<br>
<br></blockquote><div><br>I just tried latest mesa with 16ee7a55ae269612263468195f2af9<div id=":6k">98cb9ef695 you mentioned, but the remapping errors are still there.<br></div><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

&gt; Kristian<br>
&gt; _______________________________________________<br>
&gt; mesa-dev mailing list<br>
&gt; <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
olv@LunarG.com<br>
</font></blockquote></div><br>