mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
performance: Improve ULLS light residency management
-skip bo::wait if completion fence not needed -do not restart exec on evict Related-To: NEO-13922 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4e9e995dca
commit
35eae3f977
@@ -1406,7 +1406,19 @@ void DrmMemoryManager::handleFenceCompletion(GraphicsAllocation *allocation) {
|
||||
waitForEnginesCompletion(*allocation);
|
||||
}
|
||||
} else {
|
||||
static_cast<DrmAllocation *>(allocation)->getBO()->wait(-1);
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user