Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update semaphore synchronisation used in Vulkan interop tests #2243

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gorazd-sumkovski-arm
Copy link
Contributor

No description provided.

Remove the `CREATE_OPENCL_SEMAPHORE` macro and use derived class
instantiations of the `clExternalSemaphore` class, rather than base
pointers to derived class objects.

Remove the default argument for `queryParamName` in
`check_external_semaphore_handle_type()`.

Move `check_external_semaphore_handle_type()` checks to constructors of
`clExternalImportableSemaphore` and `clExternalExportableSemaphore`,
rather than manually making the check before creating an external semaphore.

Signed-off-by: Gorazd Sumkovski <[email protected]>
Since sync_fd semaphores have copy transference,
`clExternalExportableSemaphore::signal()` exports the payload after
enqueuing a signal. However the queue must be finished to execute the
signal before the export.

Also fix an event dependency deadlock in `buffer_multiple_queue` by
adding a finish on `cmd_queue1` to resolve the dependencies.

Signed-off-by: Gorazd Sumkovski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant