DRI2: Don't disable GLX_INTEL_swap_event unconditionally
authorZack Rusin <zackr@vmware.com>
Fri, 15 Feb 2013 04:39:36 +0000 (20:39 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Feb 2013 20:50:16 +0000 (12:50 -0800)
commit076403c30d9f5cc79374e30d9f6007b08a63bf2d
tree8d3a4c2644224ef3aedc8b8926ee4183093680e9
parent4c64f65f5d990a83af383790221c242d7195b5a0
DRI2: Don't disable GLX_INTEL_swap_event unconditionally

GLX_INTEL_swap_event is broken on the server side, where it's
currently unconditionally enabled. This completely breaks
systems running on drivers which don't support that extension.
There's no way to test for its presence on this side, so instead
of disabling it uncondtionally, just disable it for drivers
which are known to not support it. It makes sense because
most drivers do support it right now.
We'll be able to remove this once Xserver properly advertises
GLX_INTEL_swap_event.

Note: This is a candidate for stable branch branches.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60052
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/dri2_glx.c