mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-02 17:30:29 +01:00
rusticl/queue: do not block when dropping a queue
There is no need for a blocking wait anymore now that event processing doesn't depend on the queue anymore. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35672>
This commit is contained in:
parent
162ab66c2e
commit
513a7ca417
1 changed files with 3 additions and 6 deletions
|
|
@ -466,11 +466,8 @@ impl Queue {
|
|||
|
||||
impl Drop for Queue {
|
||||
fn drop(&mut self) {
|
||||
// when deleting the application side object, we have to flush
|
||||
// From the OpenCL spec:
|
||||
// clReleaseCommandQueue performs an implicit flush to issue any previously queued OpenCL
|
||||
// commands in command_queue.
|
||||
// TODO: maybe we have to do it on every release?
|
||||
let _ = self.flush(true);
|
||||
// When reaching this point the queue should have been flushed already, but do it here once
|
||||
// again just to be sure.
|
||||
let _ = self.flush(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue