[Mesa-dev] [RFC 0/5] DRI3 v1.1, ANV X11 explicit fences

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Thu Aug 31 05:19:34 UTC 2017


Hi,

This patchset makes use of Jason Ekstrand's recent work on SYNC_FD
semaphores and DRI3 v1.1 support for DMA fences:
https://lists.freedesktop.org/archives/mesa-dev/2017-August/168154.html

It allows Vulkan WSI clients (X11 only for now) to use explicit fencing.
That means vkQueuePresent can have an in-fence (vkSemaphore) that will
wait for the rendering to be done. vkAcquireNextImage can return an
out-fence that will let know the client when the image is ready for
rendering.

New hooks need to be implemented on the driver side. Only the ANV
driver supports it as of now.

The cube demo in Vulkan Loader And Validation Layers is a good test
case for this work as it already tries to use explicit fences
when rendering:
https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/demos/cube.c

The related Git repositories are (branch: rfc/2017-08/x11-fences):

git://git.collabora.com/git/user/lfrb/presentproto
git://git.collabora.com/git/user/lfrb/xcb-proto
git://git.collabora.com/git/user/lfrb/mesa
git://git.collabora.com/git/user/lfrb/xserver

Thanks for your input,
Louis-Francis
-- 
2.13.0



More information about the mesa-dev mailing list