vrend: check queries on main thread with async_cb enabled
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
This accompanies the latest version of the crosvm change: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2860746
Edited by Ryan Neph