mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Add SvmAllocationProperties
Change-Id: Ie96aeab5597a1b3f2db8611a8a04597516730ce8 Related-To: NEO-2535 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b7bd3aa793
commit
fae1d882f8
@@ -34,7 +34,9 @@ bool MemObjHelper::parseMemoryProperties(const cl_mem_properties_intel *properti
|
||||
AllocationProperties MemObjHelper::getAllocationProperties(MemoryProperties memoryProperties, bool allocateMemory,
|
||||
size_t size, GraphicsAllocation::AllocationType type) {
|
||||
AllocationProperties allocationProperties(allocateMemory, size, type);
|
||||
fillCachePolicyInProperties(allocationProperties, memoryProperties);
|
||||
fillCachePolicyInProperties(allocationProperties,
|
||||
isValueSet(memoryProperties.flags_intel, CL_MEM_LOCALLY_UNCACHED_RESOURCE),
|
||||
isValueSet(memoryProperties.flags, CL_MEM_READ_ONLY));
|
||||
return allocationProperties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user