On 12/06/2011 07:58 PM, Eric Anholt wrote:
On Tue, 6 Dec 2011 16:44:30 +0000, Dave Airlie<[email protected]> 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
(<[email protected]>), 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.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev
I have a feeling, since dri2 is not strictly restricted to GLX, whether
this should really be
implemented in the glx code before calling into dri2? Otoh that would
mean the server side
would need to be able to handle the case anyway.
Thomas
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev