hw/xwin/glx: Rewrite WGL wrappers after Xserver conversion to direct GL dispatch
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 27 Sep 2012 17:59:45 +0000 (18:59 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 10 Dec 2013 17:00:06 +0000 (17:00 +0000)
commit9a4d7572fe3be16bb5aded5f48d4217fdf725b1d
tree41356c48839c29c19626285716da073d396f0be0
parentcb48877a3c4cfb1ae2248000fcd3443e3092bdaa
hw/xwin/glx: Rewrite WGL wrappers after Xserver conversion to direct GL dispatch

v1: Rewrite by Marc Haesen of the WGL wrapper function generation script to use
Khronos group XML.

v2: Remove -dispatchheader option, since dispatch.h doesn't exist anymore, use
the private glapi interface to construct the GL dispatch table for the native
WGL thunks.

v3:
Rewrite to generate shims for the OpenGL 1.2.1 (GL 1.2 + GL_ARB_imaging
+GL_ARB_multitexture + GL_ARB_texture_compression(?)) functions the server links
directly with rather than libGL.

These shims dispatch to either the mesa GL DLL, or a thunking DLL containing
cdecl-to-stcall wrapper functions for the native GL DLL.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Adam Jackson <ajax@redhat.com>
configure.ac
hw/xwin/Makefile.am
hw/xwin/glx/Makefile.am
hw/xwin/glx/gen_gl_wrappers.py
hw/xwin/glx/glshim.c [new file with mode: 0644]
hw/xwin/glx/glthunk.c [moved from hw/xwin/glx/glwrap.c with 55% similarity]
hw/xwin/glx/glwindows.h
hw/xwin/glx/indirect.c