Stéphane Marchesin
bf69ce37f0
glx: implement drawable refcounting.
...
The current dri context unbind logic will leak drawables until the process
dies (they will then get released by the GEM code). There are two ways to fix
this: either always call driReleaseDrawables every time we unbind a context
(but that costs us round trips to the X server at getbuffers() time) or
implement proper drawable refcounting. This patch implements the latter.
Signed-off-by: Antoine Labour <piman@chromium.org>
Signed-off-by: Stéphane Marchesin <marcheu@chromium.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2011-06-17 11:20:19 -07:00
Dave Airlie
6538b5824e
glx/dri: add initial dri interface for GLX_EXT_framebuffer_sRGB.
...
This realigns the name of the glx bit to align with the core mesa names.
2011-03-06 20:06:42 +10:00
Kristian Høgsberg
4b70fe8421
glx: Only remove drawables from the hash when we actually delete them
...
https://bugs.freedesktop.org/show_bug.cgi?id=30457
2010-09-29 08:32:29 -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
c491e585e4
glx: Move bind and unbind to context vtable
2010-07-28 16:45:25 -04:00
Kristian Høgsberg
65d98e2577
glx: Rename glcontextmodes.[ch] to glxconfig.[ch]
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
7a66e54958
glx: Move last few dri_interface.h types out of glxclient.h and drop include
2010-07-21 22:17:24 -04:00
Kristian Høgsberg
a7292f2920
glx: Move DRI CopySubBuffer extension to DRI1 code
...
We do this in the X server for DRI2.
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
bab13969d8
glx: Move driver_configs to DRI screen privates
2010-07-19 22:45:51 -04:00
Kristian Høgsberg
22266c391f
glx: Remove support for MESA_swap_frame_usage
...
The extension never worked, the implementation returns GLX_BAD_CONTEXT
when enabling the frame tracking.
2010-07-19 22:45:50 -04:00
Kristian Høgsberg
089fc37c6f
glx: Move DRI1 specific extensions and code to DRI1 screen private
2010-07-19 22:45:50 -04:00
Kristian Høgsberg
9e546ecfd4
glx: Move DRI2 extensions to DRI2 screen private
2010-07-19 22:45:50 -04:00
Kristian Høgsberg
cb2a66fd0c
glx: Drop support for GLX_MESA_allocate_memory
...
Only r200 implemented it.
2010-07-19 22:45:50 -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
Brian Paul
1fa7789e82
Merge branch '7.8'
...
Conflicts:
src/glx/dri2_glx.c
src/glx/glx_pbuffer.c
2010-04-28 07:21:25 -06: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
Jesse Barnes
234286c0f8
DRI2: add config query extension
...
Add a new DRI2 configuration query extension. Allows for DRI2 client
code to query for common DRI2 configuration options.
2010-04-22 12:49:45 -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
Kristian Høgsberg
6e8897ff9f
Retire miniglx and move the actual glx code up to src/glx
2010-02-09 09:58:36 -05:00