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:
Compute-Runtime-Validation
2025-03-28 09:14:29 +01:00
committed by Compute-Runtime-Automation
parent c105c77930
commit 88a48f1c5b
3 changed files with 3 additions and 15 deletions

View File

@@ -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);
}
}

View File

@@ -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;
}