mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
fix: add scratch page support with xekmd
Also explicitly disable it by default. Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1083ad1e57
commit
dec695f405
@@ -968,6 +968,9 @@ uint32_t IoctlHelperXe::getFlagsForVmCreate(bool disableScratch, bool enablePage
|
||||
if (enablePageFault) {
|
||||
flags |= DRM_XE_VM_CREATE_FLAG_FAULT_MODE;
|
||||
}
|
||||
if (!disableScratch) {
|
||||
flags |= DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE;
|
||||
}
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user