mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 08:07:19 +08:00
Update CL_MEM_FORCE_HOST_MEMORY_INTEL flag
Rename CL_MEM_FORCE_SHARED_PHYSICAL_MEMORY_INTEL to CL_MEM_FORCE_HOST_MEMORY_INTEL. Rename MemoryFlags::forceSharedPhysicalMemory to MemoryFlags::forceHostMemory. Change-Id: I48c0ae958ff55f2aef71cf99ed274d021a3c1f19 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
909107cab6
commit
89be51cd94
@@ -442,7 +442,7 @@ void Buffer::checkMemory(MemoryProperties memoryProperties,
|
||||
GraphicsAllocation::AllocationType Buffer::getGraphicsAllocationType(const MemoryProperties &properties, Context &context,
|
||||
bool renderCompressedBuffers, bool isLocalMemoryEnabled,
|
||||
bool preferCompression) {
|
||||
if (context.isSharedContext || properties.flags.forceSharedPhysicalMemory) {
|
||||
if (context.isSharedContext || properties.flags.forceHostMemory) {
|
||||
return GraphicsAllocation::AllocationType::BUFFER_HOST_MEMORY;
|
||||
}
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ const uint64_t MemObjHelper::commonFlags = extraFlags | CL_MEM_READ_WRITE | CL_M
|
||||
const uint64_t MemObjHelper::commonFlagsIntel = extraFlagsIntel | CL_MEM_LOCALLY_UNCACHED_RESOURCE |
|
||||
CL_MEM_LOCALLY_UNCACHED_SURFACE_STATE_RESOURCE | CL_MEM_48BIT_RESOURCE_INTEL;
|
||||
|
||||
const uint64_t MemObjHelper::validFlagsForBuffer = commonFlags | CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL | CL_MEM_FORCE_SHARED_PHYSICAL_MEMORY_INTEL;
|
||||
const uint64_t MemObjHelper::validFlagsForBuffer = commonFlags | CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL | CL_MEM_FORCE_HOST_MEMORY_INTEL;
|
||||
|
||||
const uint64_t MemObjHelper::validFlagsForBufferIntel = commonFlagsIntel | CL_MEM_ALLOW_UNRESTRICTED_SIZE_INTEL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user