Dont create VM IDs if not supported

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-04-12 16:55:34 +00:00
committed by Compute-Runtime-Automation
parent 9839b3049d
commit 45b005161a
5 changed files with 23 additions and 8 deletions

View File

@@ -99,10 +99,12 @@ Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &
}
if (!drmObject->queryMemoryInfo()) {
drmObject->setPerContextVMRequired(true);
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stderr, "%s", "WARNING: Failed to query memory info\n");
}
if (!drmObject->queryEngineInfo()) {
drmObject->setPerContextVMRequired(true);
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stderr, "%s", "WARNING: Failed to query engine info\n");
}