fix: only increase fence/task count when submit task success

Related-To: NEO-7812

Signed-off-by: Pan Zhenjie <zhenjie.pan@intel.com>
This commit is contained in:
Zhenjie Pan
2023-03-15 15:10:06 +00:00
committed by Compute-Runtime-Automation
parent d8f99161dd
commit 820a189c52
6 changed files with 104 additions and 10 deletions

View File

@@ -126,7 +126,7 @@ bool DrmDirectSubmission<GfxFamily, Dispatcher>::submit(uint64_t gpuAddress, siz
TaskCountType completionValue = 0u;
uint64_t completionFenceGpuAddress = 0u;
if (this->isCompletionFenceSupported()) {
completionValue = ++completionFenceValue;
completionValue = completionFenceValue + 1;
completionFenceGpuAddress = this->completionFenceAllocation->getGpuAddress() + TagAllocationLayout::completionFenceOffset;
}
@@ -155,6 +155,10 @@ bool DrmDirectSubmission<GfxFamily, Dispatcher>::submit(uint64_t gpuAddress, siz
}
}
if (this->isCompletionFenceSupported() && ret) {
completionFenceValue++;
}
return ret;
}