glx: convert to direct GL dispatch (v2)

Graphics / X.Org / X.Org Server - Adam Jackson [redhat.com] - 29 October 2013 11:29 EDT

We now expect to be linked against something that provides the GL API, instead of manually grubbing about in the DRI driver's dispatch table. Since the GLX we expose calls GL functions that are meant to be looked up dynamically, also add a way to thunk through to GetProcAddress.

This includes a refresh of the generated sources, which requires a correspondingly new Mesa.

The GetProcAddress stubs are at the moment merely enough to make this link against Mesa 9.2, but should really be provided for everything not in the OpenGL 1.2 ABI.

v2: Explicitly hide the GetProcAddress stubs so we can't conflict with libGL symbols; fix leading tab/space issues [anholt]

be66809 glx: convert to direct GL dispatch (v2)
configure.ac | 2 +-
glx/Makefile.am | 14 +-
glx/dispatch.h |19816 ------------------------------------
glx/glapi.c | 504 -
glx/glapi.h | 135 -
glx/glapi_gentable.c |10058 ------------------
glx/glapitable.h | 1016 --
glx/glprocs.h | 3534 -------
glx/glthread.h | 234 -
glx/glxcmds.c | 14 +-
glx/glxcmdsswap.c | 4 -
glx/glxdri2.c | 4 -
glx/glxdriswrast.c | 4 -
glx/glxext.c | 13 +
glx/glxserver.h | 5 +
glx/glxstubs.c | 50 +
glx/indirect_dispatch.c | 3236 ++----
glx/indirect_dispatch.h | 602 +-
glx/indirect_dispatch_swap.c | 4016 +++-----
glx/indirect_program.c | 49 +-
glx/indirect_reqsize.c | 77 +-
glx/indirect_reqsize.h | 47 +-
glx/indirect_size.h | 12 +-
glx/indirect_size_get.c | 204 +-
glx/indirect_size_get.h | 16 +-
glx/indirect_table.c | 468 +-
glx/indirect_texture_compression.c | 27 +-
glx/indirect_util.c | 7 +-
glx/render2.c | 69 +-
glx/render2swap.c | 69 +-
glx/renderpix.c | 26 +-
glx/renderpixswap.c | 26 +-
glx/single2.c | 18 +-
glx/single2swap.c | 16 +-
glx/singlepix.c | 87 +-
glx/singlepixswap.c | 88 +-
glx/singlesize.c | 10 +-
glx/swap_interval.c | 4 -
glx/xfont.c | 30 +-
39 files changed, 3322 insertions(+), 41289 deletions(-)

Upstream: cgit.freedesktop.org


  • Share