mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
[6/n] Unified Shared Memory
- Move definitions to core folder. - Add tests for core related code. Change-Id: I9ae0473f965ba56cbe2f5458160b8a24d06595ae Related-To: NEO-3148 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
a2398e193b
commit
e279804c0c
@@ -2230,15 +2230,5 @@ void Kernel::addAllocationToCacheFlushVector(uint32_t argIndex, GraphicsAllocati
|
||||
}
|
||||
}
|
||||
}
|
||||
uint32_t Kernel::UnifiedMemoryControls::generateMask() {
|
||||
uint32_t resourceMask = 0u;
|
||||
if (this->indirectHostAllocationsAllowed) {
|
||||
resourceMask |= InternalMemoryType::HOST_UNIFIED_MEMORY;
|
||||
}
|
||||
if (this->indirectDeviceAllocationsAllowed) {
|
||||
resourceMask |= InternalMemoryType::DEVICE_UNIFIED_MEMORY;
|
||||
}
|
||||
|
||||
return resourceMask;
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user