mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
feature: Introduce ULLS light
Add core implementation of ULLS without VM_BIND interface aka ULLS light. Related-To: NEO-13922 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
488ac4bb6a
commit
bc2b49b958
@@ -1674,6 +1674,15 @@ std::vector<GraphicsAllocation *> &DrmMemoryManager::getLocalMemAllocs(uint32_t
|
||||
}
|
||||
|
||||
bool DrmMemoryManager::makeAllocationResident(GraphicsAllocation *allocation) {
|
||||
auto rootDeviceIndex = allocation->getRootDeviceIndex();
|
||||
auto memoryOperationsInterface = static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->memoryOperationsInterface.get());
|
||||
const auto &engines = this->getRegisteredEngines(rootDeviceIndex);
|
||||
for (const auto engine : engines) {
|
||||
if (engine.osContext->isDirectSubmissionLightActive()) {
|
||||
memoryOperationsInterface->makeResidentWithinOsContext(engine.osContext, ArrayRef<NEO::GraphicsAllocation *>(&allocation, 1), false, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (debugManager.flags.MakeEachAllocationResident.get() == 1) {
|
||||
auto drmAllocation = static_cast<DrmAllocation *>(allocation);
|
||||
auto rootDeviceIndex = allocation->getRootDeviceIndex();
|
||||
|
||||
Reference in New Issue
Block a user