mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: correct naming of enum class constants
EngineGroupType BlitDirection PostBlitMode WaitStatus Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9cc1a23ab6
commit
e57d372608
@@ -968,14 +968,14 @@ inline WaitStatus CommandStreamReceiverHw<GfxFamily>::waitForTaskCountWithKmdNot
|
||||
this->isAnyDirectSubmissionEnabled());
|
||||
|
||||
auto status = waitForCompletionWithTimeout(params, taskCountToWait);
|
||||
if (status == WaitStatus::NotReady) {
|
||||
if (status == WaitStatus::notReady) {
|
||||
waitForFlushStamp(flushStampToWait);
|
||||
// now call blocking wait, this is to ensure that task count is reached
|
||||
status = waitForCompletionWithTimeout(WaitParams{false, false, 0}, taskCountToWait);
|
||||
}
|
||||
|
||||
// If GPU hang occured, then propagate it to the caller.
|
||||
if (status == WaitStatus::GpuHang) {
|
||||
if (status == WaitStatus::gpuHang) {
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -986,7 +986,7 @@ inline WaitStatus CommandStreamReceiverHw<GfxFamily>::waitForTaskCountWithKmdNot
|
||||
if (kmdNotifyHelper->quickKmdSleepForSporadicWaitsEnabled()) {
|
||||
kmdNotifyHelper->updateLastWaitForCompletionTimestamp();
|
||||
}
|
||||
return WaitStatus::Ready;
|
||||
return WaitStatus::ready;
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
@@ -1270,7 +1270,7 @@ TaskCountType CommandStreamReceiverHw<GfxFamily>::flushBcsTask(const BlitPropert
|
||||
internalAllocationStorage->cleanAllocationList(newTaskCount, TEMPORARY_ALLOCATION);
|
||||
internalAllocationStorage->cleanAllocationList(newTaskCount, DEFERRED_DEALLOCATION);
|
||||
|
||||
if (waitStatus == WaitStatus::GpuHang) {
|
||||
if (waitStatus == WaitStatus::gpuHang) {
|
||||
return CompletionStamp::gpuHang;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user