Lines Matching refs:coherentMemory
740 if (info.coherentMemory && info.ptr) { in freeCoherentMemoryLocked()
741 if (info.coherentMemory->getDeviceMemory() != memory) { in freeCoherentMemoryLocked()
746 info.coherentMemory->release(info.ptr); in freeCoherentMemoryLocked()
750 return std::move(info.coherentMemory); in freeCoherentMemoryLocked()
1565 if (!info.coherentMemory) continue; in deviceMemoryTransform_tohost()
1567 memory[i] = info.coherentMemory->getDeviceMemory(); in deviceMemoryTransform_tohost()
2906 CoherentMemoryPtr coherentMemory = nullptr; in createCoherentMemory() local
2918 return coherentMemory; in createCoherentMemory()
2926 return coherentMemory; in createCoherentMemory()
2932 coherentMemory = std::make_shared<CoherentMemory>( in createCoherentMemory()
2947 return coherentMemory; in createCoherentMemory()
2961 return coherentMemory; in createCoherentMemory()
2968 return coherentMemory; in createCoherentMemory()
2971 coherentMemory = in createCoherentMemory()
2978 return coherentMemory; in createCoherentMemory()
3101 auto coherentMemory = std::make_shared<CoherentMemory>( in allocateCoherentMemory() local
3104 coherentMemory->subAllocate(pAllocateInfo->allocationSize, &ptr, offset); in allocateCoherentMemory()
3106 info.coherentMemory = coherentMemory; in allocateCoherentMemory()
3126 auto coherentMemory = createCoherentMemory(device, mem, hostAllocationInfo, enc, host_res); in allocateCoherentMemory() local
3127 if (coherentMemory) { in allocateCoherentMemory()
3129 coherentMemory->subAllocate(pAllocateInfo->allocationSize, &ptr, offset); in allocateCoherentMemory()
3132 info.coherentMemory = coherentMemory; in allocateCoherentMemory()
3162 CoherentMemoryPtr coherentMemory = nullptr; in getCoherentMemory() local
3174 if (!info.coherentMemory) continue; in getCoherentMemory()
3176 if (!info.coherentMemory->subAllocate(pAllocateInfo->allocationSize, &ptr, offset)) in getCoherentMemory()
3179 coherentMemory = info.coherentMemory; in getCoherentMemory()
3182 if (coherentMemory) { in getCoherentMemory()
3188 info.coherentMemory = coherentMemory; in getCoherentMemory()
3937 if (!info.coherentMemory) { in on_vkFreeMemory()
3944 auto coherentMemory = freeCoherentMemoryLocked(memory, info); in on_vkFreeMemory() local
3950 coherentMemory = nullptr; in on_vkFreeMemory()
3970 if (deviceMemoryInfo.blobId && !deviceMemoryInfo.coherentMemory && in on_vkMapMemory()
3996 auto coherentMemory = in on_vkMapMemory() local
4001 coherentMemory->subAllocate(deviceMemoryInfo.allocationSize, &ptr, offset); in on_vkMapMemory()
4004 deviceMemoryInfo.coherentMemory = coherentMemory; in on_vkMapMemory()
6795 auto coherentMemory = freeCoherentMemoryLocked(deviceMemory, it->second); in getFree() local
6800 coherentMemory = nullptr; in getFree()