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:
Karol Herbst 2025-06-21 22:26:11 +02:00 committed by Marge Bot
parent 162ab66c2e
commit 513a7ca417

View file

@ -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);
}
}