Home
last modified time | relevance | path

Searched refs:allocationSize (Results 1 - 25 of 138) sorted by relevance

123456

/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DRingBufferAllocator.cpp64 uint64_t RingBufferAllocator::Allocate(uint64_t allocationSize, ExecutionSerial serial) { in Allocate() argument
73 // Ensure adding allocationSize does not overflow. in Allocate()
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()
[all...]
H A 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()
H A 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()
H A 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()
206 // Passing allocationSize directly will avoid the following level-by-level search;
H A 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/
H A DPoolAlloc.cpp251 // much memory the caller asked for. allocationSize is the total in allocate()
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 in allocate()
[all...]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A DVkDeviceMemory.cpp136 : allocationSize(pAllocateInfo->allocationSize) in DeviceMemory()
140 ASSERT(allocationSize); in DeviceMemory()
249 if(allocationSize > MAX_MEMORY_ALLOCATION_SIZE) in allocate()
252 device->emitDeviceMemoryReport(VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT, 0 /* memoryObjectId */, allocationSize, VK_OBJECT_TYPE_DEVICE_MEMORY, 0 /* objectHandle */); in allocate()
268 device->emitDeviceMemoryReport(eventType, getMemoryObjectId(), allocationSize, VK_OBJECT_TYPE_DEVICE_MEMORY, (uint64_t)(void *)VkDeviceMemory(*this)); in allocate()
272 device->emitDeviceMemoryReport(VK_DEVICE_MEMORY_REPORT_EVENT_TYPE_ALLOCATION_FAILED_EXT, 0 /* memoryObjectId */, allocationSize, VK_OBJECT_TYPE_DEVICE_MEMORY, 0 /* objectHandle */); in allocate()
288 return allocationSize; in getCommittedMemoryInBytes()
319 // Allocate the memory according to `allocationSize`. On success return VK_SUCCESS
323 buffer = vk::allocateDeviceMemory(allocationSize, REQUIRED_MEMORY_ALIGNMEN in allocateBuffer()
[all...]
H A DVkDeviceMemoryExternalMac.hpp141 if(fd >= 0 && allocationSize > 0)
143 if(::ftruncate(fd, allocationSize) < 0)
160 void *addr = ::mmap(nullptr, allocationSize, PROT_READ | PROT_WRITE, MAP_SHARED,
173 ::munmap(buffer, allocationSize);
H A DVkDeviceMemoryExternalLinux.hpp62 if(!memfd.allocate(name, allocationSize))
68 void *addr = memfd.mapReadWrite(0, allocationSize);
79 memfd.unmap(buffer, allocationSize);
H A DVkDeviceMemoryExternalFuchsia.hpp92 zx_status_t status = zx_vmo_create(allocationSize, 0, &vmoHandle);
107 allocationSize,
122 allocationSize);
H A DVkDeviceMemory.hpp30 VkDeviceSize allocationSize = 0; member
98 // Allocate the memory according to `allocationSize`. On success return VK_SUCCESS and sets `buffer`.
121 const VkDeviceSize allocationSize; member in vk::DeviceMemory
/third_party/glslang/glslang/MachineIndependent/
H A DPoolAlloc.cpp221 // much memory the caller asked for. allocationSize is the total in allocate()
224 size_t allocationSize = TAllocation::allocationSize(numBytes); in allocate() local
236 if (currentPageOffset + allocationSize <= pageSize) { in allocate()
241 currentPageOffset += allocationSize; in allocate()
247 if (allocationSize + headerSkip > pageSize) { in allocate()
252 size_t numBytesToAlloc = allocationSize + headerSkip; in allocate()
285 currentPageOffset = (headerSkip + allocationSize + alignmentMask) & ~alignmentMask; in allocate()
/third_party/skia/src/core/
H A 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()
/third_party/skia/third_party/externals/angle2/src/common/
H A 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()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
H A DvktMemoryMappingTests.cpp509 : allocationSize (~(VkDeviceSize)0)
514 VkDeviceSize allocationSize;
654 log << TestLog::Message << "Allocation size: " << config.allocationSize << TestLog::EndMessage;
688 VkDeviceSize allocationSize = (config.allocationSize % atomSize == 0) ? config.allocationSize : config.allocationSize + (atomSize - (config.allocationSize % atomSize));
699 allocationSize = findLargeAllocationSize(vkd, device, max, memoryTypeIndex);
704 (VkDeviceSize)allocationSize,
[all...]
H A DvktMemoryAllocationTests.cpp442 const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_config.memoryPercentage * (float)memoryHeap.size)); in iterate() local
443 const VkDeviceSize roundedUpAllocationSize = roundUpToNextMultiple(allocationSize, m_memoryLimits.deviceMemoryAllocationGranularity); in iterate()
462 allocationSize * m_config.memoryAllocationCount * (m_subsetAllocationAllowed ? 1 : m_numPhysDevices) >= 1610612736) in iterate()
489 allocationSize, // allocationSize in iterate()
545 allocationSize, // allocationSize in iterate()
825 const VkDeviceSize allocationSize = 1 + (m_rng.getUint64() % maxAllocSize); in iterate()
827 if ((allocationSize > (deUint64)(heap.maxMemoryUsage - heap.memoryUsage)) && (allocationSize ! in iterate()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_wire/
H A 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/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/
H A 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()
H A 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/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
H A DvktMemoryMappingTests.cpp548 : allocationSize (~(VkDeviceSize)0)
553 VkDeviceSize allocationSize;
699 log << TestLog::Message << "Allocation size: " << config.allocationSize << TestLog::EndMessage;
733 VkDeviceSize allocationSize = (config.allocationSize % atomSize == 0) ? config.allocationSize : config.allocationSize + (atomSize - (config.allocationSize % atomSize));
747 allocationSize = findLargeAllocationSize(vkd, device, max, memoryTypeIndex);
752 (VkDeviceSize)allocationSize,
[all...]
H A DvktMemoryAllocationTests.cpp442 const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_config.memoryPercentage * (float)memoryHeap.size)); in iterate() local
443 const VkDeviceSize roundedUpAllocationSize = roundUpToNextMultiple(allocationSize, m_memoryLimits.deviceMemoryAllocationGranularity); in iterate()
462 allocationSize * m_config.memoryAllocationCount * (m_subsetAllocationAllowed ? 1 : m_numPhysDevices) >= 1610612736) in iterate()
489 allocationSize, // allocationSize in iterate()
549 allocationSize, // allocationSize in iterate()
829 const VkDeviceSize allocationSize = 1 + (m_rng.getUint64() % maxAllocSize); in iterate()
831 if ((allocationSize > (deUint64)(heap.maxMemoryUsage - heap.memoryUsage)) && (allocationSize ! in iterate()
[all...]
/third_party/mesa3d/src/virtio/vulkan/
H A 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()
[all...]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
H A 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/
H A DVulkanImageWrappingTestsOpaqueFD.cpp85 VkDeviceSize* allocationSize, in AllocateMemory()
103 allocateInfo.allocationSize = requirements.size; in AllocateMemory()
106 *allocationSize = allocateInfo.allocationSize; in AllocateMemory()
142 VkDeviceSize* allocationSize, in CreateBindExportImage()
149 AllocateMemory(deviceVk, *handle, allocation, allocationSize, memoryTypeIndex); in CreateBindExportImage()
162 VkDeviceSize allocationSize, in WrapVulkanImage()
168 return WrapVulkanImage(dawnDevice, textureDescriptor, memoryFd, allocationSize, in WrapVulkanImage()
176 VkDeviceSize allocationSize, in WrapVulkanImage()
187 descriptor.allocationSize in WrapVulkanImage()
82 AllocateMemory(dawn_native::vulkan::Device* deviceVk, VkImage handle, VkDeviceMemory* allocation, VkDeviceSize* allocationSize, uint32_t* memoryTypeIndex) AllocateMemory() argument
136 CreateBindExportImage(dawn_native::vulkan::Device* deviceVk, uint32_t width, uint32_t height, VkFormat format, VkImage* handle, VkDeviceMemory* allocation, VkDeviceSize* allocationSize, uint32_t* memoryTypeIndex, int* memoryFd) CreateBindExportImage() argument
159 WrapVulkanImage(wgpu::Device dawnDevice, const wgpu::TextureDescriptor* textureDescriptor, int memoryFd, VkDeviceSize allocationSize, uint32_t memoryTypeIndex, std::vector<int> waitFDs, bool isInitialized = true, bool expectValid = true) WrapVulkanImage() argument
173 WrapVulkanImage(wgpu::Device dawnDevice, const wgpu::TextureDescriptor* textureDescriptor, int memoryFd, VkDeviceSize allocationSize, uint32_t memoryTypeIndex, std::vector<int> waitFDs, VkImageLayout releasedOldLayout, VkImageLayout releasedNewLayout, bool isInitialized = true, bool expectValid = true) WrapVulkanImage() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
H A DvktSSBOCornerCase.cpp116 de::MovePtr<vk::Allocation> allocateAndBindMemory (Context &context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs, vk::VkDeviceSize* allocationSize = DE_NULL) in allocateAndBindMemory()
123 if (allocationSize) in allocateAndBindMemory()
125 *allocationSize = bufReqs.size; in allocateAndBindMemory()

Completed in 18 milliseconds

123456