[Piglit] [PATCH 13/14] dispatch: Use dlsym to lookup core symbols for EGL

Chad Versace chad.versace at intel.com
Wed Apr 29 18:18:14 PDT 2015

> On Wed, Apr 29, 2015 at 8:56 AM, Marek Olšák <maraeo at gmail.com> wrote:
> > Correction: Only 2 pipeline statistics tests were broken, so all seems
> > to be good (except those 2 tests).
> >
> > Marek
> >
> > On Tue, Apr 28, 2015 at 3:18 PM, Marek Olšák <maraeo at gmail.com> wrote:
> >> Hi Chad,
> >>
> >> The patch breaks GetProcAddress for libGL, because libGL doesn't
> >> export a lot of GL functions and glXGetProcAddress is the only way to
> >> get them. Any idea for a fix?

Yes. In the function's default case, which handles core GL functions (not
GLES), this
    return do_dlsym(&glx_handle, GLX_LIB, function_name);
should be replaced with
    return get_ext_proc_address(function_name);

That should fix the regression on Mesa drivers (because Mesa's
eglGetProcAddress supports all core functions) and not regress Daniel
Kurtz's use case (because the ARM systems that prompted him to write
this patch do not provide the GL API).

I'm writing up a patch and testing it now.

More information about the Piglit mailing list