[Mesa-dev] Mismatch between Mesas dispatch table and the one used by the X server

Stefan Brüns stefan.bruens at rwth-aachen.de
Sat Apr 6 11:36:50 PDT 2013


Am Freitag, 22. März 2013, 11:46:52 schrieben Sie:
 
> To call glFoo, the xserver (or libGL) does
> 
>      (dispatch_table[offset_of_glFoo])(...);
> 
> To set the pointer for the glFoo function, the driver does
> 
>      dispatch_table[remap_table[remap_offset_of_glFoo]] = driver_glFoo;

Thanks for the clarification, after knowing what should happen finding the 
root cause was straigthforward:

The population of dispatch_table is done using _glapi_add_dispatch(...). This 
function is defined by the XServer in glx/glapi.c, and it is defined in Mesas 
mapi/mapi/mapi_glapi.c

Now, why is libGL and thus libglapi linked to the X server - the Intel driver 
optionally uses glamor, which uses libGL!

Recompiling the intel driver whithout glamor resolves this problem.

Regards,

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
phone: +49 241 53809034     mobile: +49 151 50412019


More information about the mesa-dev mailing list