mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
Compute-Runtime-Automation
parent
8ea5bbd3b5
commit
9bf32b73ec
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user