SWDEV-440746 - Don't set CL_SUBMITTED twice
Change-Id: I9ba34454f7487d6bc0d398b322a147cbac6c6443
[ROCm/clr commit: fd81490bb8]
This commit is contained in:
@@ -370,13 +370,11 @@ void Command::enqueue() {
|
|||||||
// updated upon the marker completion
|
// updated upon the marker completion
|
||||||
SetBatchHead(queue_->GetSubmittionBatch());
|
SetBatchHead(queue_->GetSubmittionBatch());
|
||||||
|
|
||||||
setStatus(CL_SUBMITTED);
|
|
||||||
submit(*queue_->vdev());
|
submit(*queue_->vdev());
|
||||||
|
|
||||||
// The batch will be tracked with the marker now
|
// The batch will be tracked with the marker now
|
||||||
queue_->ResetSubmissionBatch();
|
queue_->ResetSubmissionBatch();
|
||||||
} else {
|
} else {
|
||||||
setStatus(CL_SUBMITTED);
|
|
||||||
submit(*queue_->vdev());
|
submit(*queue_->vdev());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user