Home
last modified time | relevance | path

Searched refs:allocationSize (Results 1 – 25 of 130) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DRingBufferAllocator.cpp64 uint64_t RingBufferAllocator::Allocate(uint64_t allocationSize, ExecutionSerial serial) { in Allocate() argument
75 if (allocationSize > remainingSize) { in Allocate()
86 if (mUsedEndOffset + allocationSize <= mMaxBlockSize) { in Allocate()
88 mUsedEndOffset += allocationSize; in Allocate()
89 mUsedSize += allocationSize; in Allocate()
90 mCurrentRequestSize += allocationSize; in Allocate()
91 } else if (allocationSize <= mUsedStartOffset) { // Try to sub-alloc at front. in Allocate()
94 const uint64_t requestSize = (mMaxBlockSize - mUsedEndOffset) + allocationSize; in Allocate()
97 mUsedEndOffset = allocationSize; in Allocate()
101 } else if (mUsedEndOffset + allocationSize <= in Allocate()
[all …]
DBuddyMemoryAllocator.cpp40 ResultOrError<ResourceMemoryAllocation> BuddyMemoryAllocator::Allocate(uint64_t allocationSize, in Allocate() argument
44 if (allocationSize == 0) { in Allocate()
49 if (allocationSize > mMemoryBlockSize) { in Allocate()
54 allocationSize = NextPowerOfTwo(allocationSize); in Allocate()
57 if (allocationSize > mMemoryBlockSize) { in Allocate()
62 const uint64_t blockOffset = mBuddyBlockAllocator.Allocate(allocationSize, alignment); in Allocate()
DDynamicUploader.cpp31 ResultOrError<UploadHandle> DynamicUploader::AllocateInternal(uint64_t allocationSize, in AllocateInternal() argument
34 if (allocationSize > kRingBufferSize) { in AllocateInternal()
36 DAWN_TRY_ASSIGN(stagingBuffer, mDevice->CreateStagingBuffer(allocationSize)); in AllocateInternal()
55 if (allocationSize <= remainingSize) { in AllocateInternal()
63 startOffset = targetRingBuffer->mAllocator.Allocate(allocationSize, serial); in AllocateInternal()
73 startOffset = targetRingBuffer->mAllocator.Allocate(allocationSize, serial); in AllocateInternal()
115 ResultOrError<UploadHandle> DynamicUploader::Allocate(uint64_t allocationSize, in Allocate() argument
121 AllocateInternal(allocationSize + offsetAlignment - 1, serial)); in Allocate()
DBuddyAllocator.cpp139 uint64_t BuddyAllocator::Allocate(uint64_t allocationSize, uint64_t alignment) { in Allocate() argument
140 if (allocationSize == 0 || allocationSize > mMaxBlockSize) { in Allocate()
145 const uint32_t allocationSizeToLevel = ComputeLevelFromBlockSize(allocationSize); in Allocate()
DDynamicUploader.h44 ResultOrError<UploadHandle> Allocate(uint64_t allocationSize,
57 ResultOrError<UploadHandle> AllocateInternal(uint64_t allocationSize,
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DPoolAlloc.cpp254 size_t allocationSize = TAllocation::allocationSize(numBytes); in allocate() local
256 if (allocationSize < numBytes) in allocate()
263 if (allocationSize <= pageSize - currentPageOffset) { in allocate()
268 currentPageOffset += allocationSize; in allocate()
274 if (allocationSize > pageSize - headerSkip) { in allocate()
279 size_t numBytesToAlloc = allocationSize + headerSkip; in allocate()
281 if (numBytesToAlloc < allocationSize) in allocate()
316 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask; in allocate()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkDeviceMemory.cpp136 : allocationSize(pAllocateInfo->allocationSize) in DeviceMemory()
140 ASSERT(allocationSize); in DeviceMemory()
249 if(allocationSize > MAX_MEMORY_ALLOCATION_SIZE) in allocate()
252 …ORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT, 0 /* memoryObjectId */, allocationSize, VK_OBJECT_TYP… in allocate()
268 …device->emitDeviceMemoryReport(eventType, getMemoryObjectId(), allocationSize, VK_OBJECT_TYPE_DEVI… in allocate()
272 …ORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT, 0 /* memoryObjectId */, allocationSize, VK_OBJECT_TYP… in allocate()
288 return allocationSize; in getCommittedMemoryInBytes()
323 buffer = vk::allocateDeviceMemory(allocationSize, REQUIRED_MEMORY_ALIGNMENT); in allocateBuffer()
DVkDeviceMemoryExternalMac.hpp141 if(fd >= 0 && allocationSize > 0) in allocateBuffer()
143 if(::ftruncate(fd, allocationSize) < 0) in allocateBuffer()
160 void *addr = ::mmap(nullptr, allocationSize, PROT_READ | PROT_WRITE, MAP_SHARED, in allocateBuffer()
173 ::munmap(buffer, allocationSize); in freeBuffer()
DVkDeviceMemoryExternalLinux.hpp62 if(!memfd.allocate(name, allocationSize)) in allocateBuffer()
68 void *addr = memfd.mapReadWrite(0, allocationSize); in allocateBuffer()
79 memfd.unmap(buffer, allocationSize); in freeBuffer()
DVkDeviceMemoryExternalFuchsia.hpp92 zx_status_t status = zx_vmo_create(allocationSize, 0, &vmoHandle); in allocateBuffer()
107 allocationSize, in allocateBuffer()
122 allocationSize); in freeBuffer()
DVkDeviceMemory.hpp30 VkDeviceSize allocationSize = 0; member
121 const VkDeviceSize allocationSize; member in vk::DeviceMemory
/third_party/skia/src/core/
DSkArenaAlloc.cpp81 uint32_t allocationSize = std::max(objSizeAndOverhead, minAllocationSize); in ensureSpace() local
86 uint32_t mask = allocationSize > (1 << 15) ? (1 << 12) - 1 : 16 - 1; in ensureSpace()
87 AssertRelease(allocationSize <= maxSize - mask); in ensureSpace()
88 allocationSize = (allocationSize + mask) & ~mask; in ensureSpace()
91 char* newBlock = new char[allocationSize]; in ensureSpace()
96 fEnd = fCursor + allocationSize; in ensureSpace()
DSkBlockAllocator.cpp31 SkBlockAllocator::Block::Block(Block* prev, int allocationSize) in Block() argument
34 , fSize(allocationSize) in Block()
38 SkASSERT(allocationSize >= (int) sizeof(Block)); in Block()
/third_party/glslang/glslang/MachineIndependent/
DPoolAlloc.cpp240 size_t allocationSize = TAllocation::allocationSize(numBytes); in allocate() local
252 if (currentPageOffset + allocationSize <= pageSize) { in allocate()
257 currentPageOffset += allocationSize; in allocate()
263 if (allocationSize + headerSkip > pageSize) { in allocate()
268 size_t numBytesToAlloc = allocationSize + headerSkip; in allocate()
301 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask; in allocate()
/third_party/skia/third_party/externals/angle2/src/common/
DPoolAlloc.cpp351 size_t allocationSize = in allocate() local
355 ASSERT(allocationSize >= numBytes); in allocate()
358 if (allocationSize <= mPageSize - mCurrentPageOffset) in allocate()
362 mCurrentPageOffset += allocationSize; in allocate()
367 if (allocationSize > mPageSize - mPageHeaderSkip) in allocate()
374 allocationSize = Allocation::AllocationSize(reinterpret_cast<uint8_t *>(mPageHeaderSkip), in allocate()
377 size_t numBytesToAlloc = allocationSize + mPageHeaderSkip + mAlignment; in allocate()
380 ASSERT(numBytesToAlloc >= allocationSize); in allocate()
444 size_t allocationSize = in allocateNewPage() local
447 mCurrentPageOffset += allocationSize; in allocateNewPage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryMappingTests.cpp509 : allocationSize (~(VkDeviceSize)0) in TestConfig()
514 VkDeviceSize allocationSize; member
654 log << TestLog::Message << "Allocation size: " << config.allocationSize << TestLog::EndMessage; in testMemoryMapping()
688 …e allocationSize = (config.allocationSize % atomSize == 0) ? config.allocationSize : config.al… in testMemoryMapping() local
699 allocationSize = findLargeAllocationSize(vkd, device, max, memoryTypeIndex); in testMemoryMapping()
704 (VkDeviceSize)allocationSize, in testMemoryMapping()
713 image = makeImage(vkd, device, allocationSize, queueFamilyIndex); in testMemoryMapping()
718 buffer = makeBuffer(vkd, device, allocationSize, queueFamilyIndex); in testMemoryMapping()
721 allocationSize = req.size; in testMemoryMapping()
724 if (config.mapping.size == config.allocationSize && config.mapping.offset == 0u) in testMemoryMapping()
[all …]
DvktMemoryAllocationTests.cpp366 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate() local
367 …const VkDeviceSize roundedUpAllocationSize = roundUpToNextMultiple(allocationSize, m_memoryLimit… in iterate()
386allocationSize * m_config.memoryAllocationCount * (m_subsetAllocationAllowed ? 1 : m_numPhysDevice… in iterate()
413 allocationSize, // allocationSize in iterate()
465 allocationSize, // allocationSize in iterate()
729 const VkDeviceSize allocationSize = 1 + (m_rng.getUint64() % maxAllocSize); in iterate() local
731 …if ((allocationSize > (deUint64)(heap.maxMemoryUsage - heap.memoryUsage)) && (allocationSize != 1)) in iterate()
737 allocationSize, in iterate()
772 heap.memoryUsage += allocationSize; in iterate()
773 (isDeviceLocal ? m_totalDeviceMem : m_totalSystemMem) += allocationSize; in iterate()
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/
DMemoryServiceZirconHandle.cpp97 MemoryImportParams params = {opaqueFDDescriptor->allocationSize, in GetMemoryImportParams()
110 requirements.size > importParams.allocationSize, in ImportMemory()
112 importParams.allocationSize, requirements.size); in ImportMemory()
123 allocateInfo.allocationSize = importParams.allocationSize; in ImportMemory()
DMemoryServiceOpaqueFD.cpp97 MemoryImportParams params = {opaqueFDDescriptor->allocationSize, in GetMemoryImportParams()
109 DAWN_INVALID_IF(requirements.size > importParams.allocationSize, in ImportMemory()
111 importParams.allocationSize, requirements.size); in ImportMemory()
122 allocateInfo.allocationSize = importParams.allocationSize; in ImportMemory()
/third_party/skia/third_party/externals/dawn/src/dawn_wire/
DWireDeserializeAllocator.cpp38 size_t allocationSize = std::max(size, size_t(2048)); in GetSpace() local
39 char* allocation = static_cast<char*>(malloc(allocationSize)); in GetSpace()
46 mRemainingSize = allocationSize; in GetSpace()
/third_party/mesa3d/src/virtio/vulkan/
Dvn_device_memory.c54 .allocationSize = size, in vn_device_memory_pool_grow_alloc()
213 if (alloc_info->allocationSize > 64 * 1024) in vn_device_memory_should_suballocate()
262 dev->renderer, alloc_info->allocationSize, fd, mem_flags, &bo); in vn_device_memory_import_dma_buf()
277 .allocationSize = alloc_info->allocationSize, in vn_device_memory_import_dma_buf()
321 .allocationSize = alloc_info->allocationSize, in vn_device_memory_alloc_guest_vram()
451 mem->size = pAllocateInfo->allocationSize; in vn_AllocateMemory()
693 .allocationSize = 0, in vn_get_memory_dma_buf_properties()
709 *out_alloc_size = alloc_size_props.allocationSize; in vn_get_memory_dma_buf_properties()
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DResidencyManagerD3D12.h38 MaybeError EnsureCanAllocate(uint64_t allocationSize, MemorySegment memorySegment);
64 ResultOrError<uint64_t> EnsureCanMakeResident(uint64_t allocationSize,
/third_party/skia/third_party/externals/dawn/src/tests/white_box/
DVulkanImageWrappingTestsOpaqueFD.cpp85 VkDeviceSize* allocationSize, in AllocateMemory() argument
103 allocateInfo.allocationSize = requirements.size; in AllocateMemory()
106 *allocationSize = allocateInfo.allocationSize; in AllocateMemory()
142 VkDeviceSize* allocationSize, in CreateBindExportImage() argument
149 AllocateMemory(deviceVk, *handle, allocation, allocationSize, memoryTypeIndex); in CreateBindExportImage()
162 VkDeviceSize allocationSize, in WrapVulkanImage() argument
168 return WrapVulkanImage(dawnDevice, textureDescriptor, memoryFd, allocationSize, in WrapVulkanImage()
176 VkDeviceSize allocationSize, in WrapVulkanImage() argument
187 descriptor.allocationSize = allocationSize; in WrapVulkanImage()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DSecondaryCommandBuffer.h759 ANGLE_INLINE StructType *commonInit(CommandID cmdID, size_t allocationSize) in commonInit() argument
762 mCurrentBytesRemaining -= allocationSize; in commonInit()
766 header->size = static_cast<uint16_t>(allocationSize); in commonInit()
767 ASSERT(allocationSize <= std::numeric_limits<uint16_t>::max()); in commonInit()
769 mCurrentWritePointer += allocationSize; in commonInit()
791 const size_t allocationSize = fixedAllocationSize + variableSize; in initCommand() local
793 const size_t requiredSize = allocationSize + sizeof(CommandHeader); in initCommand()
808 return commonInit<StructType>(cmdID, allocationSize); in initCommand()
817 constexpr size_t allocationSize = paramSize + sizeof(CommandHeader); in initCommand() local
819 if (mCurrentBytesRemaining < (allocationSize + sizeof(CommandHeader))) in initCommand()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/WSI/
DVkSwapchainKHR.cpp127 allocInfo.allocationSize = 0; in createImages()
141 allocInfo.allocationSize = currentImage.getImage()->getMemoryRequirements().size; in createImages()

123456