[Mesa-dev] DRI2 pixmap swapping

Eric Anholt eric at anholt.net
Tue Dec 6 10:58:06 PST 2011


On Tue, 6 Dec 2011 16:44:30 +0000, Dave Airlie <airlied at gmail.com> wrote:
> Hi,
> 
> So GLX has a rule about not swapping pixmaps, and I've been trying to
> track down why with DRI2 my driver gets requests for swapping pixmaps
> (piglit glx-swap-pixmap test).
> 
> So it appears in the DRI2 buffer swap case, we bypass the GLX protocol
> and use the DRI2SwapBuffers protocol, now nowhere on the X server
> checks that the swap is for a Window and not a pixmap, so it happily
> ends up calling into my driver and executing a page flip and messing
> up my screen. So the question is whether
> 
> So is DRI2 pixmap swapping is something someone thought should be
> legal despite GLX or is it just an oversight? if so trivial patch is
> attached.

I wrote a pretty similar patch
(<1306964943-15228-1-git-send-email-eric at anholt.net>), which Ville
complained about because he thought client-side should be checking for
pixmap/single-buffered instead.  I disagree, so I'm in favor of this
change.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111206/43de2773/attachment.pgp>


More information about the mesa-dev mailing list