[RFC 00/12] DRI3 v1.1: DMA fences

Louis-Francis Ratté-Boulianne lfrb at collabora.com
Wed Aug 30 05:16:49 UTC 2017


Hi,

This patchset implements the second part of what we would like to see
become DRI3 v1.1, that is the implementation of DMA fences.
For some context, please see initial submission for DRI3 v1.1 work:

https://lists.x.org/archives/xorg-devel/2017-June/053854.html

This also implements some use cases for DMA fences in the modesetting
driver. If the wait_fence given to PresentPixmap is a DMA one,
the fence can be inserted in the GL stream (copying) or added to the
DRM atomic commit (page-flipping). If the new IdleFence option is
given to PresentPixmap, a DMA out-fence will be attached to the Idle
event so the X11 client can properly deal with it.

For the Glamor path to work properly, EGL extensions EGL_KHR_wait_sync
and EGL_ANDROID_native_fence_sync needs to be supported. For the
page-flipping path, the kernel should expose IN_FENCE_FD and
OUT_FENCE_PTR DRM properties.

A MESA patchset will follow soon with the appropriate changes to
the Vulkan X11 backend and i965 driver to make use of the new
features.

The Git repositories containing all of these patches and related ones 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 also to Intel for sponsoring this work.

Louis-Francis
-- 
2.13.0



More information about the xorg-devel mailing list