mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
Add ioctl helper function to check vm bind availability
Related-To: NEO-6591 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
964596e514
commit
12e2670b9a
@@ -669,6 +669,7 @@ TEST(DrmMemoryManagerCreate, whenCallCreateMemoryManagerThenDrmMemoryManagerIsCr
|
||||
MockExecutionEnvironment executionEnvironment(defaultHwInfo.get());
|
||||
auto drm = new DrmMockSuccess(fakeFd, *executionEnvironment.rootDeviceEnvironments[0]);
|
||||
|
||||
drm->setupIoctlHelper(defaultHwInfo->platform.eProductFamily);
|
||||
executionEnvironment.rootDeviceEnvironments[0]->osInterface = std::make_unique<OSInterface>();
|
||||
executionEnvironment.rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(drm));
|
||||
auto drmMemoryManager = MemoryManager::createMemoryManager(executionEnvironment);
|
||||
@@ -687,6 +688,7 @@ TEST(DrmMemoryManagerCreate, givenEnableHostPtrValidationSetToZeroWhenCreateDrmM
|
||||
MockExecutionEnvironment executionEnvironment(defaultHwInfo.get());
|
||||
auto drm = new DrmMockSuccess(fakeFd, *executionEnvironment.rootDeviceEnvironments[0]);
|
||||
|
||||
drm->setupIoctlHelper(defaultHwInfo->platform.eProductFamily);
|
||||
executionEnvironment.rootDeviceEnvironments[0]->osInterface = std::make_unique<OSInterface>();
|
||||
executionEnvironment.rootDeviceEnvironments[0]->osInterface->setDriverModel(std::unique_ptr<DriverModel>(drm));
|
||||
auto drmMemoryManager = MemoryManager::createMemoryManager(executionEnvironment);
|
||||
|
||||
Reference in New Issue
Block a user