mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:00:01 +08:00
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:
committed by
Compute-Runtime-Automation
parent
d8f99161dd
commit
820a189c52
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user