<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 June 2015 at 19:29, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 18 June 2015 at 06:53, Julien Isorce <<a href="mailto:julien.isorce@gmail.com">julien.isorce@gmail.com</a>> wrote:<br>
> Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=90903" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=90903</a><br>
> Signed-off-by: Julien Isorce <<a href="mailto:j.isorce@samsung.com">j.isorce@samsung.com</a>><br>
> ---<br>
> src/egl/drivers/dri2/egl_dri2.c | 2 ++<br>
> 1 file changed, 2 insertions(+)<br>
><br>
> diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c<br>
> index a1cbd43..90b9648 100644<br>
> --- a/src/egl/drivers/dri2/egl_dri2.c<br>
> +++ b/src/egl/drivers/dri2/egl_dri2.c<br>
> @@ -2354,6 +2354,8 @@ dri2_load(_EGLDriver *drv)<br>
> #ifdef HAVE_SHARED_GLAPI<br>
> #ifdef HAVE_ANDROID_PLATFORM<br>
> const char *libname = "libglapi.so";<br>
> +#elif defined(__APPLE__)<br>
> + const char *libname = "libglapi.0.dylib";<br>
> #else<br>
</span>Is this enough to get dri modules (suspecting only swrast atm) working<br>
with EGL ?<br></blockquote><div><br></div><div>Well at least es2_info and es2gears_x11 are working (with both GALLIUM_DRIVER=softpipe and llvmpipe). I have attached a screenshot: <a href="https://bugs.freedesktop.org/attachment.cgi?id=116583">https://bugs.freedesktop.org/attachment.cgi?id=116583</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Note that currently libEGL already explicitly links against libglapi,<br>
so imho we can just drop the whole thing. Haven't really looked but do<br>
we use glFlush() as a workaround or it's something required by the EGL<br>
standard ?<br></blockquote><div><br></div><div>No idea but without the patch you get:</div><div><p class=""><span class="">EGL_LOG_LEVEL=debug es2_info </span></p><p class=""><span class="">libEGL debug: Native platform type: x11 (autodetected)</span></p><p class=""><span class="">libEGL debug: added egl_dri2 to module array</span></p><p class=""><span class="">libEGL warning: DRI2: failed to find _glapi_get_proc_address</span></p><p class=""><span class="">libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize</span></p><p class="">Error: eglInitialize() failed</p><p class=""><span class=""></span></p></div><div>Cheers</div><div>Julien</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks<br>
<span class=""><font color="#888888">Emil<br>
</font></span></blockquote></div><br></div></div>