EGL_ANDROID_native_fence_sync Patches For Mesa
Written by Michael Larabel in Mesa on 19 November 2016 at 08:28 AM EST. Add A Comment
MESA --
Rob Clark on Friday sent out the patches for implementing the EGL_ANDROID_native_fence_sync extension within Mesa's EGL and Gallium3D code.

The Red Hat developer explained, "This extension provides support for native fence fd's (file descriptors) for the GPU. In a similar way to dma-buf fd's, which provide a reference-counted userspace handle to buffers which can be shared across drivers and across processes, native fence fd's provide a reference-counted userspace handle to fences which can be shared across drivers and across processes. This extension is already in use on android, and should be useful in other environments."

Those wanting to better understand this extension can see the Khronos.org registry.

In terms of the fencing support on the DRM kernel driver side, "The kernel patches for freedreno (drm/msm) are upstream (v4.9) and the libdrm patches are in v2.4.72. Kernel patches for drm/virtio are in flight (so corresponding gallium patch is not ready to push). Kernel plus libdrm plus mesa patches for i965 are in flight."

Implementing this extension is around 500 lines of code. More details via the Mesa-dev list.
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Related Mesa News
Popular News This Week