[Mesa-dev] [PATCH] Mark MESA_swap_control and SGI_video_sync as not "direct only"

2010-04-30 Thread Owen Taylor
From: Owen W. Taylor With DRI2, MESA_swap_control and SGI_video_sync are done on the X server side, so shouldn't be marked direct_only - they only can be supported if the server supports them. This fix is not completely right because with DRI1, which is still supported in some of the drivers, th

Re: [Mesa-dev] [PATCH] DRI2: check DRI2 protocol version before advertising swap related extensions

2010-04-30 Thread Owen Taylor
On Mon, 2010-04-26 at 11:19 -0700, Jesse Barnes wrote: > - /* FIXME: if DRI2 version supports it... */ > - __glXEnableDirectExtension(psc, "INTEL_swap_event"); > + if (dri2_major == 1 && dri2_minor >= 2) { > + __glXEnableDirectExtension(psc, "GLX_SGI_video_sync"); > + __glX