Revert "Add mechanism to ensure resource lifetime residency on Linux"

This reverts commit 537ffbcb00.

Change-Id: I425a6167979e1f7bb9bc1ca8a8b91bd8174be480
This commit is contained in:
Jobczyk, Lukasz
2020-05-05 00:40:18 -07:00
committed by sys_ocldev
parent 85a5dcfe62
commit a843293f89
8 changed files with 12 additions and 65 deletions

View File

@@ -17,7 +17,6 @@
#include "shared/source/os_interface/linux/drm_buffer_object.h"
#include "shared/source/os_interface/linux/drm_engine_mapper.h"
#include "shared/source/os_interface/linux/drm_memory_manager.h"
#include "shared/source/os_interface/linux/drm_memory_operations_handler.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "shared/source/os_interface/linux/os_context_linux.h"
#include "shared/source/os_interface/linux/os_interface.h"
@@ -116,13 +115,6 @@ void DrmCommandStreamReceiver<GfxFamily>::processResidency(const ResidencyContai
makeResidentBufferObjects(drmAlloc, handleId);
}
}
auto memoryOperationInterface = static_cast<DrmMemoryOperationsHandler *>(this->executionEnvironment.rootDeviceEnvironments[this->rootDeviceIndex]->memoryOperationsInterface.get());
auto allTimeResidentAllocs = memoryOperationInterface->getResidencySet();
for (const auto &alloc : allTimeResidentAllocs) {
const auto drmAlloc = static_cast<DrmAllocation *>(alloc);
makeResidentBufferObjects(drmAlloc, handleId);
}
}
template <typename GfxFamily>