summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorNiels Ole Salscheider <[email protected]>2013-08-09 11:59:26 +0200
committerTom Stellard <[email protected]>2013-08-26 18:25:17 -0700
commitef6ed7220af51d7ae2ee132829f46a8b08d9796b (patch)
tree731854402ca0d93c1c1335a2d4c02eb837799976 /src/gallium
parent4a3505d5487fbdab773f5c91edd39e8aea6e90af (diff)
st/clover: Add event to deps even if it has been triggered
The command is submitted once the event has been triggered, but it might not have completed yet. Therefore, we have to add it to deps in order to wait on it. Signed-off-by: Niels Ole Salscheider <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/clover/core/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/core/event.cpp b/src/gallium/state_trackers/clover/core/event.cpp
index de21f0c6e53..cbb97bfe87c 100644
--- a/src/gallium/state_trackers/clover/core/event.cpp
+++ b/src/gallium/state_trackers/clover/core/event.cpp
@@ -58,8 +58,8 @@ _cl_event::chain(clover::event *ev) {
if (wait_count) {
ev->wait_count++;
__chain.push_back(ev);
- ev->deps.push_back(this);
}
+ ev->deps.push_back(this);
}
hard_event::hard_event(clover::command_queue &q, cl_command_type command,