/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | RingBufferAllocator.cpp | 64 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 …]
|
D | BuddyMemoryAllocator.cpp | 40 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()
|
D | DynamicUploader.cpp | 31 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()
|
D | BuddyAllocator.cpp | 139 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()
|
D | DynamicUploader.h | 44 ResultOrError<UploadHandle> Allocate(uint64_t allocationSize, 57 ResultOrError<UploadHandle> AllocateInternal(uint64_t allocationSize,
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/ |
D | PoolAlloc.cpp | 254 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/ |
D | VkDeviceMemory.cpp | 136 : 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()
|
D | VkDeviceMemoryExternalMac.hpp | 141 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()
|
D | VkDeviceMemoryExternalLinux.hpp | 62 if(!memfd.allocate(name, allocationSize)) in allocateBuffer() 68 void *addr = memfd.mapReadWrite(0, allocationSize); in allocateBuffer() 79 memfd.unmap(buffer, allocationSize); in freeBuffer()
|
D | VkDeviceMemoryExternalFuchsia.hpp | 92 zx_status_t status = zx_vmo_create(allocationSize, 0, &vmoHandle); in allocateBuffer() 107 allocationSize, in allocateBuffer() 122 allocationSize); in freeBuffer()
|
D | VkDeviceMemory.hpp | 30 VkDeviceSize allocationSize = 0; member 121 const VkDeviceSize allocationSize; member in vk::DeviceMemory
|
/third_party/skia/src/core/ |
D | SkArenaAlloc.cpp | 81 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()
|
D | SkBlockAllocator.cpp | 31 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/ |
D | PoolAlloc.cpp | 240 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/ |
D | PoolAlloc.cpp | 351 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/ |
D | vktMemoryMappingTests.cpp | 509 : 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 …]
|
D | vktMemoryAllocationTests.cpp | 366 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate() local 367 …const VkDeviceSize roundedUpAllocationSize = roundUpToNextMultiple(allocationSize, m_memoryLimit… in iterate() 386 …allocationSize * 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/ |
D | MemoryServiceZirconHandle.cpp | 97 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()
|
D | MemoryServiceOpaqueFD.cpp | 97 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/ |
D | WireDeserializeAllocator.cpp | 38 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/ |
D | vn_device_memory.c | 54 .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/ |
D | ResidencyManagerD3D12.h | 38 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/ |
D | VulkanImageWrappingTestsOpaqueFD.cpp | 85 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/ |
D | SecondaryCommandBuffer.h | 759 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/ |
D | VkSwapchainKHR.cpp | 127 allocInfo.allocationSize = 0; in createImages() 141 allocInfo.allocationSize = currentImage.getImage()->getMemoryRequirements().size; in createImages()
|