venus: allow renderer submissions on per-context virtgpu rings
authorRyan Neph <ryanneph@google.com>
Wed, 10 Aug 2022 00:12:07 +0000 (17:12 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 16 Dec 2022 21:12:38 +0000 (21:12 +0000)
commit3beb4f055e17240af00c0ced5e8f7e25c2c13ad2
tree2b2ce8693308625c164bd1636fc1edcd87d10357
parent9bba5032c233ffe57cb1677f61cecfe79e6b53d5
venus: allow renderer submissions on per-context virtgpu rings

For submissions to renderers that support multiple timelines, put
them on the virtgpu fencing timeline (dma fence context) specified by
the VkQueue's bound ring_idx. CPU-sync'd renderer submissions
can be sent in the same manner by using ring_idx = 0.

Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19691>
src/virtio/vulkan/vn_renderer.h
src/virtio/vulkan/vn_renderer_util.c
src/virtio/vulkan/vn_renderer_util.h
src/virtio/vulkan/vn_renderer_virtgpu.c
src/virtio/vulkan/vn_renderer_vtest.c