Introduce debug regkey to enable kmd migration for buffers

The new regkey is aimed to test cross-tile migration for buffers,
esp. first touch policy on h/w with support for page faults.

Related-To: NEO-6977

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
This commit is contained in:
Milczarek, Slawomir
2022-06-27 09:38:48 +00:00
committed by Compute-Runtime-Automation
parent 8ea5bbd3b5
commit 9bf32b73ec
4 changed files with 42 additions and 1 deletions

View File

@@ -252,7 +252,9 @@ bool DrmAllocation::shouldAllocationPageFault(const Drm *drm) {
switch (this->allocationType) {
case AllocationType::UNIFIED_SHARED_MEMORY:
return DebugManager.flags.UseKmdMigration.get();
return DebugManager.flags.UseKmdMigration.get() > 0;
case AllocationType::BUFFER:
return DebugManager.flags.UseKmdMigrationForBuffers.get() > 0;
default:
return false;
}