glx: Convert generated code function pointer thunking
authorAdam Jackson <ajax@redhat.com>
Tue, 3 Dec 2013 17:40:24 +0000 (12:40 -0500)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Dec 2013 16:01:37 +0000 (08:01 -0800)
commitc4567a376083eb7b142a7f003ddf8372d376ea86
tree02fc86823548333cc05cfcb4b319a5dc7e048c5a
parentf69f4f417c6807405e45289b39a80f1b9a55f9e6
glx: Convert generated code function pointer thunking

We're meant not to call these by name due to ABI.  Rather than try to
generate a bunch of little stub functions that do the lookup, just
inline it all directly into the calling function.

This does not cache results.  That's fine, this is not a performance
path, and if we're atop WGL then we effectively have to do this every
time anyway because wglGetProcAddress results are context-dependent.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Jon TURNEY <jon.turney@dronecode.org.uk>
glx/indirect_dispatch.c
glx/indirect_dispatch_swap.c