[Mesa-dev] [PATCH 1/2] st/clover: Clear the complete queue

Niels Ole Salscheider niels_ole at salscheider-online.de
Fri Sep 6 08:07:48 PDT 2013


Events that are already signalled can be removed from the queue, too.

Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>
---
 src/gallium/state_trackers/clover/core/queue.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/clover/core/queue.cpp b/src/gallium/state_trackers/clover/core/queue.cpp
index 0b1c494..500a636 100644
--- a/src/gallium/state_trackers/clover/core/queue.cpp
+++ b/src/gallium/state_trackers/clover/core/queue.cpp
@@ -56,7 +56,7 @@ _cl_command_queue::flush() {
       pipe->flush(pipe, &fence, 0);
       std::for_each(first, last, [&](event_ptr &ev) { ev->fence(fence); });
       screen->fence_reference(screen, &fence, NULL);
-      queued_events.erase(first, last);
+      queued_events.clear();
    }
 }
 
-- 
1.8.4



More information about the mesa-dev mailing list