Skip to content
Snippets Groups Projects
Commit 77bd2b21 authored by Melissa Wen's avatar Melissa Wen
Browse files

v3dv: add support to multiple wait and signal semaphores


We are extending 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 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. Also, signal semaphores is already
handled in the last job of the last cmd buffer, and we no longer need
to add them in the submit master thread.

v2:
- improve comments (Iago)
- check code style (Iago)
- rework conditions (Iago)
- refine implementation (Iago)
- drop do_sem_wait [redundant] (Iago)
- accommodate timeline interface (Iago)
- should allocate extension
- rebase

Signed-off-by: default avatarMelissa Wen <mwen@igalia.com>
parent 8eede481
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment