venus: check and configure new ringMonitoring feature
authorRyan Neph <ryanneph@google.com>
Wed, 22 Mar 2023 19:47:42 +0000 (12:47 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Mar 2023 23:27:53 +0000 (23:27 +0000)
commit4a4b05869a6ad909417e30d46706ad6038084901
tree51976543670ba9b02bbd2fe87c44c52c19e96788
parentc4c09464ce8240ed65efc99fe3894194f132da6d
venus: check and configure new ringMonitoring feature

At ring creation, if supported by renderer, we can request
ringMonitoring. During driver ring waits, the ring's new ALIVE status
bit will be checked periodically at the configured rate. If the bit is
not set, the renderer must have crashed and the driver should do the
same to signal a problem to the app/user.

Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22036>
src/virtio/vulkan/vn_common.c
src/virtio/vulkan/vn_common.h
src/virtio/vulkan/vn_instance.c
src/virtio/vulkan/vn_ring.c
src/virtio/vulkan/vn_ring.h