Skip to content

vrend: check queries on main thread with async_cb enabled

Ryan Neph requested to merge ryanneph/virglrenderer:fix-async-cb into master

Queries must still be checked on the main thread since GL API interactions are not thread-safe in vrend.

With VREND_USE_ASYNC_FENCE_CB enabled, only queries are checked by virgl_renderer_poll(). When disabled, fences and queries are managed during the poll, as usual.

Fixes: !534 (merged) ("virgl: Add flag to retire fences directly from sync thread")

Signed-off-by: Ryan Neph ryanneph@google.com

/cc @lfrb @olv @zzyiwei

This accompanies the latest version of the crosvm change: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2860746

Edited by Ryan Neph

Merge request reports

Loading