Skip to content

virgl: Add flag to retire fences directly from sync thread

Add unstable VIRGL_RENDERER_ASYNC_FENCE_CB flag that allows fence callback to be executed directly from the fence polling thread. It requires the write_fence callback provided by the user to be thread-safe.

This feature will be used by crosvm to reduce polling. Performance gain with this method (fence retired directly from sync thread) seems to be greater than watching the polling fd from crosvm.

Merge request reports