Eric Anholt
49d7e48b33
mesa: Add new MESA_multithread_makecurrent extension.
...
This extension allows a client to bind one context in multiple threads
simultaneously. It is then up to the client to manage synchronization of
access to the GL, just as normal multithreaded GL from multiple contexts
requires synchronization management to shared objects.
2011-02-26 12:43:15 -08:00
Kristian Høgsberg
94118fe2d4
glx: Optimize out no-op make current calls
...
This make a lot more sense now that we might have to recreate the
glx drawables for legacy code paths.
2010-09-09 13:18:43 -04:00
Kristian Høgsberg
659dab6be6
glx: Fix use after free problem
2010-09-08 18:54:48 -04:00
Kristian Høgsberg
16887d042a
glx: Drop broken drawable garbage collection
...
Doesn't work for pixmaps, was looking up the GLX XID and was never thread
safe. Instead, just destroy the client side structures when the
drawable is no long current for a context.
2010-09-08 09:20:42 -04:00
Kristian Høgsberg
3ea3f5e0a5
glx: Set an all NULL vtable for dummyContext
...
This reverts 6a6e6d7b0a
and initializes
dummyContext with an all NULL vtable. The context vtable pointer is
supposed to always be non-NULL, but the vtable entries can be NULL.
2010-09-07 14:32:28 -04:00
Kristian Høgsberg
f485ee724d
glx: Compare old ctx against dummyCtx, not NULL
...
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-29 18:49:10 -04:00
Kristian Høgsberg
6849916170
glx: Split indirect and applegl implementations into different files
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
c491e585e4
glx: Move bind and unbind to context vtable
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
c356f5867f
glx: Rename __GLXcontext and __GLXdisplayPrivate to struct types.
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
66fc35cde9
glx: Rename __GLXscreenConfigs to struct glx_screen
...
Because double underscores in private type names is painful.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
38c51a7653
glx: Use _X_EXPORT instead of our own PUBLIC macro
...
We're an X client library, so we can use Xfuncproto.h.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
6ddf66e923
glx: Rename __GLcontextModes to struct glx_config
...
With this rename, we use 'config' consitently to refer to GLX configurations
instead of the modes/configs/visual mess before.
2010-07-28 16:42:00 -04:00
Kristian Høgsberg
c796bb0cc3
glx: Move context destroy to context vtable
2010-07-23 22:05:52 -04:00
Kristian Høgsberg
31819830b6
glx: Allocate the __GLXcontext in the DRI drivers
2010-07-22 22:16:32 -04:00
Kristian Høgsberg
e3e8196c02
glx: Move drawHash to display private
...
The XIDs are display wide so the natural location of the hash is here.
This way we don't have to lookup in each of the screen hashes.
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
f972115d33
glx: Add screen privates for dri drivers and moved some fields there
...
GLXscreenConfigs is badly named and a dumping ground for a lot of stuff.
This patch creates private screen structs for the dri drivers and moves
some of their fields over there.
2010-07-19 22:45:50 -04:00
Jeremy Huddleston
80b280db88
apple: Change ifdefs for DRI to be DRI && !APPLE
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-27 11:26:51 -07:00
Jeremy Huddleston
ad503c4155
apple: Initial import of libGL for OSX from AppleSGLX svn repository.
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-27 11:26:50 -07:00
Jeremy Huddleston
115203281c
Revert accidental commits from the xquartz tree
...
This reverts commit 9aadc793f3
.
This reverts commit 69ea4e7718
.
This reverts commit dbe8b01393
.
This reverts commit 23215ef4d6
.
This reverts commit 9495e37030
.
This reverts commit 0594cf7088
.
This reverts commit 86a7978d37
.
This reverts commit 437902ce97
.
2010-04-01 17:01:51 -07:00
Jeremy Huddleston
23215ef4d6
apple: Change ifdefs for DRI to be DRI && !APPLE
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01 12:33:46 -07:00
Jeremy Huddleston
0594cf7088
apple: Initial import of libGL for OSX from AppleSGLX svn repository.
...
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01 12:33:45 -07:00
Kristian Høgsberg
6e8897ff9f
Retire miniglx and move the actual glx code up to src/glx
2010-02-09 09:58:36 -05:00