You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto bo = static_cast<DrmAllocation &>(graphicsAllocation).getBO();
1521
+
auto rootDeviceIndex = graphicsAllocation.getRootDeviceIndex();
1522
+
auto ioctlHelper = this->getDrm(rootDeviceIndex).getIoctlHelper();
1522
1523
1524
+
if (ioctlHelper->makeResidentBeforeLockNeeded()) {
1525
+
auto memoryOperationsInterface = static_cast<DrmMemoryOperationsHandler *>(executionEnvironment.rootDeviceEnvironments[rootDeviceIndex]->memoryOperationsInterface.get());
1526
+
auto graphicsAllocationPtr = &graphicsAllocation;
1527
+
[[maybe_unused]] auto ret = memoryOperationsInterface->makeResidentWithinOsContext(getDefaultOsContext(rootDeviceIndex), ArrayRef<NEO::GraphicsAllocation *>(&graphicsAllocationPtr, 1), false) == MemoryOperationsStatus::success;
1528
+
DEBUG_BREAK_IF(!ret);
1529
+
}
1530
+
1531
+
auto bo = static_cast<DrmAllocation &>(graphicsAllocation).getBO();
1523
1532
if (graphicsAllocation.getAllocationType() == AllocationType::writeCombined) {
1524
1533
auto addr = lockBufferObject(bo);
1525
1534
auto alignedAddr = alignUp(addr, MemoryConstants::pageSize64k);
0 commit comments