mesa/src/glx
Chia-I Wu e8c7d7598f glapi: Fix OpenGL and OpenGL ES interop.
When --enable-shared-glapi is specified, libGL will share libglapi with
OpenGL ES instead of defining its own copy of glapi.  This makes sure an
app will get only one copy of glapi in its address space.

The new option is disabled by default.  When enabled, libGL and libglapi
must be built from the same source tree and distributed together.  This
requirement comes from the fact that the dispatch offsets used by these
libraries are re-assigned whenever GLAPI XMLs are changed.

For GLX, indirect rendering for has_different_protocol() functions is
tricky.  A has_different_protocol() function is assigned only one
dispatch offset, yet each entry point needs a different protocol opcode.
It cannot be supported by the shared glapi.  The fix to this is to make
glXGetProcAddress handle such functions specially before calling
_glapi_get_proc_address.

Note that these files are automatically generated/re-generated

 src/glx/indirect.c
 src/glx/indirect.h
 src/mapi/glapi/glapi_mapi_tmp.h
2011-01-20 17:15:50 +08:00
..
apple glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
applegl_glx.c glx: Split indirect and applegl implementations into different files 2010-07-28 16:45:25 -04:00
clientattrib.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
compsize.c ARB_texture_rg: Add GLX protocol support 2010-10-01 15:49:12 -07:00
dri2.c glx: decouple dri2.c and GLX, fixing Gallium EGL and d3d1x build 2010-09-22 08:01:49 +02:00
dri2.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
dri2_glx.c dri2: release texture image. 2011-01-09 14:55:16 -05:00
dri_common.c glx: Only remove drawables from the hash when we actually delete them 2010-09-29 08:32:29 -04:00
dri_common.h glx: Drop broken drawable garbage collection 2010-09-08 09:20:42 -04:00
dri_glx.c glx: Drop broken drawable garbage collection 2010-09-08 09:20:42 -04:00
drisw_glx.c glx: Drop broken drawable garbage collection 2010-09-08 09:20:42 -04:00
eval.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
glx_pbuffer.c glx: Fix another use-after-free problem 2010-09-09 08:06:51 -04:00
glx_query.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
glxclient.h glx: remove duplicated include 2010-09-30 09:36:23 -06:00
glxcmds.c glapi: Fix OpenGL and OpenGL ES interop. 2011-01-20 17:15:50 +08:00
glxconfig.c glx: Rename glcontextmodes.[ch] to glxconfig.[ch] 2010-07-28 16:42:00 -04:00
glxconfig.h glx: Rename glcontextmodes.[ch] to glxconfig.[ch] 2010-07-28 16:42:00 -04:00
glxcurrent.c glx: Optimize out no-op make current calls 2010-09-09 13:18:43 -04:00
glxext.c glx: Use GLX_BufferSwapComplete unconditionally, we require glproto 1.4.11 2010-09-07 14:24:25 -04:00
glxextensions.c ARB_texture_rg: Add GLX protocol support 2010-10-01 15:49:12 -07:00
glxextensions.h ARB_texture_rg: Add GLX protocol support 2010-10-01 15:49:12 -07:00
glxhash.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
glxhash.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect.c glapi: Fix OpenGL and OpenGL ES interop. 2011-01-20 17:15:50 +08:00
indirect.h glapi: Fix OpenGL and OpenGL ES interop. 2011-01-20 17:15:50 +08:00
indirect_glx.c glx: Drop broken drawable garbage collection 2010-09-08 09:20:42 -04:00
indirect_init.c mesa: update to version 64 of GL/glext.h 2010-09-14 09:37:37 -06:00
indirect_init.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
indirect_size.c glapi: regenerated files 2011-01-15 17:37:41 -07:00
indirect_size.h glapi: regenerated files 2011-01-15 17:37:41 -07:00
indirect_texture_compression.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_transpose_matrix.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_vertex_array.c glx: add const qualifiers to __indirect_glMultiDrawArraysEXT() 2010-09-14 11:01:03 -06:00
indirect_vertex_array.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_vertex_array_priv.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
indirect_vertex_program.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
indirect_window_pos.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
Makefile glapi: Fix OpenGL and OpenGL ES interop. 2011-01-20 17:15:50 +08:00
packrender.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
packsingle.h glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
pixel.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
pixelstore.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
render2.c Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
renderpix.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
single2.c glapi: Do not use glapidispatch.h. 2010-10-27 10:06:25 +08:00
singlepix.c glapi: Do not use glapioffsets.h. 2010-10-27 10:49:33 +08:00
vertarr.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00
XF86dri.c glx: Use _X_EXPORT instead of our own PUBLIC macro 2010-07-28 16:42:00 -04:00
xf86dri.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
xf86dristr.h Retire miniglx and move the actual glx code up to src/glx 2010-02-09 09:58:36 -05:00
xfont.c glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types. 2010-07-28 16:45:25 -04:00