Skip to content

v3dv: add support to multiple wait and signal semaphores

Melissa Wen requested to merge mwen/mesa:multisyncobj into main

We extended our kernel interface to support more than one wait and signal semaphores on job submission. For this, when kernel-driver supports the multiple syncobjs extension, we should create a generic extension type and determine the multiple semaphore extension by an id. It keeps waitSemaphores and/or signalSemaphores from submitInfo according to job submission criteria and actually use wait semaphores, instead of the last job submitted when serialization is not required.

With these changes, we can remove a FIXME to pass the actual syncobj to the wait semaphores. We still need to refactor how we handle VkSemaphores in a cmd buffer batch to process wait and signal semaphores from SubmitInfo only in the very first and very last job, respectively.

Edited by Melissa Wen

Merge request reports