mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Use ioctl helper when creating VM
Related-To: NEO-6999, NEO-6852 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e2991c3b13
commit
9938b4001d
@@ -92,6 +92,14 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((request == DrmIoctl::GemVmCreate) && (arg != nullptr)) {
|
||||
ioctlCount.gemVmCreate++;
|
||||
auto gemVmControl = static_cast<GemVmControl *>(arg);
|
||||
receivedGemVmControl = *gemVmControl;
|
||||
gemVmControl->vmId = ++latestCreatedVmId;
|
||||
return storedRetValForVmCreate;
|
||||
}
|
||||
|
||||
if ((request == DrmIoctl::GemContextDestroy) && (arg != nullptr)) {
|
||||
ioctlCount.contextDestroy++;
|
||||
auto destroy = static_cast<GemContextDestroy *>(arg);
|
||||
|
||||
Reference in New Issue
Block a user