wsi/x11: Fetch and discard the SYNC extension info
authorAdam Jackson <ajax@redhat.com>
Fri, 1 Oct 2021 21:47:29 +0000 (17:47 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 Oct 2021 16:11:11 +0000 (16:11 +0000)
commitb01fe97a39cfca67d01ddcd632ff2bcd794e62c9
treefc7113327d03b995d60721aba461f91c0534dedb
parentebfbb42e0e534b0b5c06c79b723a745a2224451d
wsi/x11: Fetch and discard the SYNC extension info

Since we're not checking for this, xcb has to do it for us the first
time we call xcb_sync_destroy_fence, which puts a blocking round-trip in
the swapchain destroy path for no reason. Check for the extension so we
have the extension's opcode cached when we need it.

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13339>
src/vulkan/wsi/wsi_common_x11.c