mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Add flag to switch host ptr validation
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
7b52f587da
commit
1ddc83d0d5
@@ -1023,9 +1023,15 @@ void DrmMemoryManager::registerAllocationInOs(GraphicsAllocation *allocation) {
|
||||
}
|
||||
|
||||
std::unique_ptr<MemoryManager> DrmMemoryManager::create(ExecutionEnvironment &executionEnvironment) {
|
||||
bool validateHostPtr = true;
|
||||
|
||||
if (DebugManager.flags.EnableHostPtrValidation.get() != -1) {
|
||||
validateHostPtr = DebugManager.flags.EnableHostPtrValidation.get();
|
||||
}
|
||||
|
||||
return std::make_unique<DrmMemoryManager>(gemCloseWorkerMode::gemCloseWorkerActive,
|
||||
DebugManager.flags.EnableForcePin.get(),
|
||||
true,
|
||||
validateHostPtr,
|
||||
executionEnvironment);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user