[Mesa-dev] [PATCH] glx/dri3: Use a separate xcb connection for Present events

Daniel Stone daniel at fooishbar.org
Sun Apr 19 06:29:26 PDT 2015


Hi,

On Saturday, April 18, 2015, Axel Davy <axel.davy at ens.fr> wrote:
>
> There's a strange issue with xcb_get_geometry: If I use the new xcb
> connection
> it fails and the error is a drawable error. If I use the Xlib xcb
> connection (what
> I did in this patch) it works. If anyone knows why, please tell. We use
> xcb_get_geometry
> with gallium nine with a different xcb connection than Xlib and it works
> without
>

Not all that surprising I guess. If a client creates a window and then
immediately creates a surface with it, nothing guarantees that the window
creation request on the other display actually ever got processed.

You'd need to pepper this with XSync on the display the client passed in to
recreate the synchronisation that was previously implicit in having both
client and Mesa requests ordered within the same connection.

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150419/1335db6e/attachment.html>


More information about the mesa-dev mailing list