mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Revert "performance: Improve ULLS light residency management"
This reverts commit 35eae3f977.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c105c77930
commit
88a48f1c5b
@@ -1406,19 +1406,7 @@ void DrmMemoryManager::handleFenceCompletion(GraphicsAllocation *allocation) {
|
||||
waitForEnginesCompletion(*allocation);
|
||||
}
|
||||
} else {
|
||||
bool callBoWait = true;
|
||||
|
||||
const auto &engines = this->getRegisteredEngines(allocation->getRootDeviceIndex());
|
||||
for (const auto &engine : engines) {
|
||||
if (engine.osContext->isDirectSubmissionLightActive() && !allocationTypeForCompletionFence(allocation->getAllocationType())) {
|
||||
callBoWait = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (callBoWait) {
|
||||
static_cast<DrmAllocation *>(allocation)->getBO()->wait(-1);
|
||||
}
|
||||
static_cast<DrmAllocation *>(allocation)->getBO()->wait(-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ MemoryOperationsStatus DrmMemoryOperationsHandlerDefault::evictWithinOsContext(O
|
||||
auto ret = std::find(this->residency.begin(), this->residency.end(), &gfxAllocation);
|
||||
if (ret != this->residency.end()) {
|
||||
this->residency.erase(ret);
|
||||
this->newResourcesSinceLastRingSubmit = true;
|
||||
}
|
||||
return MemoryOperationsStatus::success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user