[Mesa-dev] [PATCH] clover: Update the wait_count of the correct event when chaining events

Tom Stellard thomas.stellard at amd.com
Wed Mar 25 10:43:32 PDT 2015


Cc: 10.5 10.4 <mesa-stable at lists.freedesktop.org>
---
 src/gallium/state_trackers/clover/core/event.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/clover/core/event.cpp b/src/gallium/state_trackers/clover/core/event.cpp
index 58de888..9d78b48 100644
--- a/src/gallium/state_trackers/clover/core/event.cpp
+++ b/src/gallium/state_trackers/clover/core/event.cpp
@@ -67,7 +67,7 @@ event::signalled() const {
 void
 event::chain(event &ev) {
    if (wait_count) {
-      ev.wait_count++;
+      wait_count++;
       _chain.push_back(ev);
    }
    ev.deps.push_back(*this);
-- 
2.0.4



More information about the mesa-dev mailing list