Fix event reporting for AMD_DIRECT_DISPATCH

Change-Id: I2ff74b9470da976852228c30fefbd4abd8e1952b
这个提交包含在:
Saleel Kudchadker 于 2020-12-09 15:09:41 -05:00 提交
1 父节点 1fde842703
当前提交 d0c35f1c40
1 个文件已更改
+1 -1
+1 -1
查看文件
@@ -266,7 +266,7 @@ void Command::enqueue() {
// when multiple threads submit/flush/update the batch at the same time
ScopedLock sl(queue_->lock());
queue_->FormSubmissionBatch(this);
if (type() == CL_COMMAND_MARKER || type() == 0) {
if ((type() == CL_COMMAND_MARKER || type() == 0) && !profilingInfo().marker_ts_) {
// Flush the current batch and wait for the results, since it's a marker.
// @todo: The condition requires a reevaluation to determine if any marker needs a wait.
queue_->vdev()->flush(queue_->GetSubmittionBatch());