v3dv: pre-allocate actual events instead of event descriptors
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 29 Nov 2022 09:52:33 +0000 (10:52 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 30 Nov 2022 17:10:45 +0000 (17:10 +0000)
commit71e86a4655d348573a91b5d3cc1a5fa24e5847cb
treeb9992c4023fdae6b29e8299d0fa5cc07d86829e2
parentcf841cdd0bcf0784fb6a4301e624e12f3502ba5a
v3dv: pre-allocate actual events instead of event descriptors

Instead of keeping a free list of "event descriptors" which are
just the offsets in the BO state that are available, pre-allocate
the events. This is simpler as it doesn't require to allocate these
event descriptors at all.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20053>
src/broadcom/vulkan/v3dv_event.c
src/broadcom/vulkan/v3dv_private.h