SWDEV-440746 - Don't set CL_SUBMITTED twice

Change-Id: I9ba34454f7487d6bc0d398b322a147cbac6c6443


[ROCm/clr commit: fd81490bb8]
This commit is contained in:
German Andryeyev
2024-04-19 11:52:20 -04:00
parent 2e58154d80
commit 7eaba0bd33
-2
View File
@@ -370,13 +370,11 @@ void Command::enqueue() {
// updated upon the marker completion
SetBatchHead(queue_->GetSubmittionBatch());
setStatus(CL_SUBMITTED);
submit(*queue_->vdev());
// The batch will be tracked with the marker now
queue_->ResetSubmissionBatch();
} else {
setStatus(CL_SUBMITTED);
submit(*queue_->vdev());
}
} else {