• Home
  • Raw
  • Download

Lines Matching full:alloc

26                                      VulkanAlloc* alloc) {  in AllocBufferMemory()  argument
42 allocator->getAllocInfo(memory, alloc); in AllocBufferMemory()
46 void VulkanMemory::FreeBufferMemory(VulkanMemoryAllocator* allocator, const VulkanAlloc& alloc) { in FreeBufferMemory() argument
47 SkASSERT(alloc.fBackendMemory); in FreeBufferMemory()
48 allocator->freeMemory(alloc.fBackendMemory); in FreeBufferMemory()
57 VulkanAlloc* alloc) { in AllocImageMemory() argument
84 allocator->getAllocInfo(memory, alloc); in AllocImageMemory()
89 const VulkanAlloc& alloc) { in FreeImageMemory() argument
90 SkASSERT(alloc.fBackendMemory); in FreeImageMemory()
91 allocator->freeMemory(alloc.fBackendMemory); in FreeImageMemory()
95 const VulkanAlloc& alloc, in MapAlloc() argument
97 SkASSERT(VulkanAlloc::kMappable_Flag & alloc.fFlags); in MapAlloc()
98 SkASSERT(alloc.fBackendMemory); in MapAlloc()
100 VkResult result = allocator->mapMemory(alloc.fBackendMemory, &mapPtr); in MapAlloc()
108 const VulkanAlloc& alloc) { in UnmapAlloc() argument
109 SkASSERT(alloc.fBackendMemory); in UnmapAlloc()
110 allocator->unmapMemory(alloc.fBackendMemory); in UnmapAlloc()
113 void VulkanMemory::GetNonCoherentMappedMemoryRange(const VulkanAlloc& alloc, in GetNonCoherentMappedMemoryRange() argument
118 SkASSERT(alloc.fFlags & VulkanAlloc::kNoncoherent_Flag); in GetNonCoherentMappedMemoryRange()
119 offset = offset + alloc.fOffset; in GetNonCoherentMappedMemoryRange()
124 SkASSERT(offset >= alloc.fOffset); in GetNonCoherentMappedMemoryRange()
125 SkASSERT(offset + size <= alloc.fOffset + alloc.fSize); in GetNonCoherentMappedMemoryRange()
133 range->memory = alloc.fMemory; in GetNonCoherentMappedMemoryRange()
139 const VulkanAlloc& alloc, in FlushMappedAlloc() argument
143 if (alloc.fFlags & VulkanAlloc::kNoncoherent_Flag) { in FlushMappedAlloc()
145 SkASSERT(size <= alloc.fSize); in FlushMappedAlloc()
146 SkASSERT(alloc.fBackendMemory); in FlushMappedAlloc()
147 VkResult result = allocator->flushMemory(alloc.fBackendMemory, offset, size); in FlushMappedAlloc()
153 const VulkanAlloc& alloc, in InvalidateMappedAlloc() argument
157 if (alloc.fFlags & VulkanAlloc::kNoncoherent_Flag) { in InvalidateMappedAlloc()
159 SkASSERT(size <= alloc.fSize); in InvalidateMappedAlloc()
160 SkASSERT(alloc.fBackendMemory); in InvalidateMappedAlloc()
161 VkResult result = allocator->invalidateMemory(alloc.fBackendMemory, offset, size); in InvalidateMappedAlloc()