v3dv: implement host-side event handling functions
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 26 Feb 2020 08:36:27 +0000 (09:36 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:27 +0000 (21:21 +0000)
commitd6afbcb800458418c3fc2bf18b6e16f2a065db49
tree2d9ef61c04aaf1110216b3630db9e1ec20ab9a33
parentaba2a66fb8ad2e7d32c7471d9564e2e90d50be47
v3dv: implement host-side event handling functions

I am not quite certain that this is the way to go though. Here, we are
expecting that the GPU can set/reset the event inside a command buffer
as a 1x1 pixel clear for example, however, there is still the question
of how we get to implement the command buffer wait on an event, since
reading the docs I haven't found any such functionality to be available.
We could think of implementing this by splitting the command buffer
into multiple jobs at the wait command, and then using a separate
thread for job submissions that would poll the event UBO before sending
it to the kernel, but that looks like a bit of a kludge.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_device.c
src/broadcom/vulkan/v3dv_private.h