[Mesa-dev] [PATCH 2/5] clover: Replace open-coded event::signalled()
Tom Stellard
thomas.stellard at amd.com
Thu May 7 16:36:55 PDT 2015
This consolidates signalled checks into the same place.
---
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..3c9336e 100644
--- a/src/gallium/state_trackers/clover/core/event.cpp
+++ b/src/gallium/state_trackers/clover/core/event.cpp
@@ -66,7 +66,7 @@ event::signalled() const {
void
event::chain(event &ev) {
- if (wait_count) {
+ if (!signalled()) {
ev.wait_count++;
_chain.push_back(ev);
}
--
2.0.4
More information about the mesa-dev
mailing list