Home
last modified time | relevance | path

Searched refs:allocInfo (Results 1 – 25 of 47) sorted by relevance

12

/external/swiftshader/tests/VulkanWrapper/
DBuffer.cpp30 vk::MemoryAllocateInfo allocInfo{}; in Buffer() local
31 allocInfo.allocationSize = memRequirements.size; in Buffer()
32allocInfo.memoryTypeIndex = 0; //TODO: getMemoryTypeIndex(memRequirements.memoryTypeBits, vk::Mem… in Buffer()
34 bufferMemory = device.allocateMemory(allocInfo); in Buffer()
DUtil.cpp42 vk::CommandBufferAllocateInfo allocInfo{}; in beginSingleTimeCommands() local
43 allocInfo.level = vk::CommandBufferLevel::ePrimary; in beginSingleTimeCommands()
44 allocInfo.commandPool = commandPool; in beginSingleTimeCommands()
45 allocInfo.commandBufferCount = 1; in beginSingleTimeCommands()
47 auto commandBuffer = device.allocateCommandBuffers(allocInfo); in beginSingleTimeCommands()
DDrawTester.cpp347 vk::DescriptorSetAllocateInfo allocInfo; in createCommandBuffers() local
348 allocInfo.descriptorPool = descriptorPool; in createCommandBuffers()
349 allocInfo.descriptorSetCount = 1; in createCommandBuffers()
350 allocInfo.pSetLayouts = layouts.data(); in createCommandBuffers()
352 descriptorSets = device.allocateDescriptorSets(allocInfo); in createCommandBuffers()
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp206 MovePtr<Allocation> SimpleAllocator::allocate (const VkMemoryAllocateInfo& allocInfo, VkDeviceSize … in allocate() argument
210 Move<VkDeviceMemory> mem = allocateMemory(m_vk, m_device, &allocInfo); in allocate()
213 if (isHostVisibleMemory(m_memProps, allocInfo.memoryTypeIndex)) in allocate()
214 hostPtr = MovePtr<HostPtr>(new HostPtr(m_vk, m_device, *mem, 0u, allocInfo.allocationSize, 0u)); in allocate()
222 VkMemoryAllocateInfo allocInfo = in allocate() local
241 allocInfo.pNext = &allocFlagsInfo; in allocate()
244 Move<VkDeviceMemory> mem = allocateMemory(m_vk, m_device, &allocInfo); in allocate()
249 DE_ASSERT(isHostVisibleMemory(m_memProps, allocInfo.memoryTypeIndex)); in allocate()
250 hostPtr = MovePtr<HostPtr>(new HostPtr(m_vk, m_device, *mem, 0u, allocInfo.allocationSize, 0u)); in allocate()
266 const VkMemoryAllocateInfo allocInfo = in allocateExtended() local
[all …]
DvkMemUtil.hpp133 …virtual de::MovePtr<Allocation> allocate (const VkMemoryAllocateInfo& allocInfo, VkDeviceSize alig…
143 …de::MovePtr<Allocation> allocate (const VkMemoryAllocateInfo& allocInfo, VkDeviceSize alignme…
DvkRefUtil.cpp173 const VkCommandBufferAllocateInfo allocInfo = in allocateCommandBuffer() local
183 return allocateCommandBuffer(vk, device, &allocInfo); in allocateCommandBuffer()
/external/swiftshader/src/WSI/
DVkSwapchainKHR.cpp120 VkMemoryAllocateInfo allocInfo = {}; in createImages() local
121 allocInfo.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in createImages()
122 allocInfo.allocationSize = 0; in createImages()
123 allocInfo.memoryTypeIndex = 0; in createImages()
136 allocInfo.allocationSize = currentImage.getImage()->getMemoryRequirements().size; in createImages()
138 status = currentImage.allocateAndBindImageMemory(device, allocInfo); in createImages()
/external/skia/tools/gpu/vk/
DVkYcbcrSamplerHelper.cpp111 VkMemoryAllocateInfo allocInfo = {}; in createBackendTexture() local
112 allocInfo.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in createBackendTexture()
113 allocInfo.allocationSize = requirements.size; in createBackendTexture()
114 allocInfo.memoryTypeIndex = memoryTypeIndex; in createBackendTexture()
117 GR_VK_CALL_RESULT(vkGpu, result, AllocateMemory(vkGpu->device(), &allocInfo, in createBackendTexture()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferComputeInstance.cpp170 const vk::VkDescriptorSetAllocateInfo allocInfo = in createDescriptorSet() local
178 vk::Move<vk::VkDescriptorSet> descriptorSet = allocateDescriptorSet(vki, device, &allocInfo); in createDescriptorSet()
211 const vk::VkDescriptorSetAllocateInfo allocInfo = in createDescriptorSet() local
219 vk::Move<vk::VkDescriptorSet> descriptorSet = allocateDescriptorSet(vki, device, &allocInfo); in createDescriptorSet()
DvktApiDescriptorSetTests.cpp478 const VkDescriptorSetAllocateInfo allocInfo = in descriptorSetLayoutBindingOrderingTest() local
487 VK_CHECK(vk.allocateDescriptorSets(device, &allocInfo, &descriptorSet)); in descriptorSetLayoutBindingOrderingTest()
/external/deqp/external/vulkancts/modules/vulkan/device_group/
DvktDeviceGroupRendering.cpp449 VkMemoryAllocateInfo allocInfo = in iterate() local
497 allocInfo.allocationSize = memReqs.size; in iterate()
498 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
499 vertexBufferMemory = allocateMemory(vk, *m_deviceGroup, &allocInfo); in iterate()
569 allocInfo.allocationSize = memReqs.size; in iterate()
570 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
571 indexBufferMemory = allocateMemory(vk, *m_deviceGroup, &allocInfo); in iterate()
641 allocInfo.allocationSize = memReqs.size; in iterate()
642 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
643 uniformBufferMemory = allocateMemory(vk, *m_deviceGroup, &allocInfo); in iterate()
[all …]
/external/skqp/third_party/vulkanmemoryallocator/include/
Dvk_mem_alloc.h6675 VMA_DEBUG_LOG(" Created new allocation Size=%llu", allocInfo.allocationSize); in Allocate()
6888 VkMemoryAllocateInfo allocInfo = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO }; in CreateBlock() local
6889 allocInfo.memoryTypeIndex = m_MemoryTypeIndex; in CreateBlock()
6890 allocInfo.allocationSize = blockSize; in CreateBlock()
6892 VkResult res = m_hAllocator->AllocateVulkanMemory(&allocInfo, &mem); in CreateBlock()
6905 allocInfo.allocationSize); in CreateBlock()
7119 AllocationInfo allocInfo; in AddAllocation() local
7120 allocInfo.m_hAllocation = hAlloc; in AddAllocation()
7121 allocInfo.m_pChanged = pChanged; in AddAllocation()
7122 m_Allocations.push_back(allocInfo); in AddAllocation()
[all …]
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_utils.cpp96 VkMemoryAllocateInfo allocInfo = {}; in FindAndAllocateCompatibleMemory() local
97 allocInfo.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in FindAndAllocateCompatibleMemory()
98 allocInfo.pNext = extraAllocationInfo; in FindAndAllocateCompatibleMemory()
99 allocInfo.memoryTypeIndex = memoryTypeIndex; in FindAndAllocateCompatibleMemory()
100 allocInfo.allocationSize = memoryRequirements.size; in FindAndAllocateCompatibleMemory()
102 ANGLE_VK_TRY(context, deviceMemoryOut->allocate(device, allocInfo)); in FindAndAllocateCompatibleMemory()
Dvk_wrapper.h460 VkResult allocate(VkDevice device, const VkMemoryAllocateInfo &allocInfo);
608 const VkDescriptorSetAllocateInfo &allocInfo,
1397 ANGLE_INLINE VkResult DeviceMemory::allocate(VkDevice device, const VkMemoryAllocateInfo &allocInfo)
1400 return vkAllocateMemory(device, &allocInfo, nullptr, &mHandle);
1745 const VkDescriptorSetAllocateInfo &allocInfo,
1749 return vkAllocateDescriptorSets(device, &allocInfo, descriptorSetsOut);
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesTestsUtil.cpp865 const VkMemoryAllocateInfo allocInfo = in makeSparseImageMemoryBind() local
874 VK_CHECK(vk.allocateMemory(device, &allocInfo, DE_NULL, &deviceMemory)); in makeSparseImageMemoryBind()
895 const VkMemoryAllocateInfo allocInfo = in makeSparseMemoryBind() local
904 VK_CHECK(vk.allocateMemory(device, &allocInfo, DE_NULL, &deviceMemory)); in makeSparseMemoryBind()
/external/deqp/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalDrawAndClearTests.cpp606 const VkDescriptorSetAllocateInfo allocInfo = in createAndUpdateDescriptorSet() local
615 m_descriptorSet = allocateDescriptorSet(m_vkd, m_device, &allocInfo); in createAndUpdateDescriptorSet()
1046 const VkDescriptorSetAllocateInfo allocInfo = in createAndUpdateDescriptorSets() local
1055 m_descriptorSet = allocateDescriptorSet(m_vkd, m_device, &allocInfo); in createAndUpdateDescriptorSets()
1062 m_descriptorSetUpdate = allocateDescriptorSet(m_vkd, m_device, &allocInfo); in createAndUpdateDescriptorSets()
/external/skia/src/gpu/
DGrAHardwareBufferUtils.cpp451 VkMemoryAllocateInfo allocInfo = { in make_vk_backend_texture() local
460 err = VK_CALL(AllocateMemory(device, &allocInfo, nullptr, &memory)); in make_vk_backend_texture()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrFormatTests.cpp183 const VkDescriptorSetAllocateInfo allocInfo = in createDescriptorSet() local
192 descSet = allocateDescriptorSet(vkd, device, &allocInfo); in createDescriptorSet()
DvktYCbCrViewTests.cpp189 const VkDescriptorSetAllocateInfo allocInfo = in createDescriptorSet() local
198 descSet = allocateDescriptorSet(vkd, device, &allocInfo); in createDescriptorSet()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktOpaqueTypeIndexingTests.cpp807 const VkDescriptorSetAllocateInfo allocInfo = in iterate() local
816 extraResourcesSet = allocateDescriptorSet(vkd, device, &allocInfo); in iterate()
1271 const VkDescriptorSetAllocateInfo allocInfo = in iterate() local
1280 extraResourcesSet = allocateDescriptorSet(vkd, device, &allocInfo); in iterate()
1636 const VkDescriptorSetAllocateInfo allocInfo = in iterate() local
1645 extraResourcesSet = allocateDescriptorSet(vkd, device, &allocInfo); in iterate()
/external/vulkan-validation-layers/layers/
Dgpu_validation.cpp1321 VmaAllocationCreateInfo allocInfo = {}; in GpuAllocateValidationResources() local
1322 allocInfo.usage = VMA_MEMORY_USAGE_GPU_TO_CPU; in GpuAllocateValidationResources()
1323 …result = vmaCreateBuffer(gpu_validation_state->vmaAllocator, &bufferInfo, &allocInfo, &output_bloc… in GpuAllocateValidationResources()
1380 allocInfo.usage = VMA_MEMORY_USAGE_CPU_TO_GPU; in GpuAllocateValidationResources()
1382 …result = vmaCreateBuffer(gpu_validation_state->vmaAllocator, &bufferInfo, &allocInfo, &input_block… in GpuAllocateValidationResources()
Dvk_mem_alloc.h6747 const VkMemoryAllocateInfo& allocInfo,
11950 VkMemoryAllocateInfo allocInfo = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO }; in CreateBlock() local
11951 allocInfo.memoryTypeIndex = m_MemoryTypeIndex; in CreateBlock()
11952 allocInfo.allocationSize = blockSize; in CreateBlock()
11954 VkResult res = m_hAllocator->AllocateVulkanMemory(&allocInfo, &mem); in CreateBlock()
11968 allocInfo.allocationSize, in CreateBlock()
12521 AllocationInfo allocInfo = AllocationInfo(hAlloc, pChanged); in AddAllocation() local
12522 (*it)->m_Allocations.push_back(allocInfo); in AddAllocation()
12593 AllocationInfo& allocInfo = pSrcBlockInfo->m_Allocations[srcAllocIndex]; in DefragmentRound() local
12595 const VkDeviceSize size = allocInfo.m_hAllocation->GetSize(); in DefragmentRound()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineDynamicOffsetTests.cpp451 const VkDescriptorSetAllocateInfo allocInfo = in init() local
459 m_descriptorSets.push_back(allocateDescriptorSet(vk, vkDevice, &allocInfo)); in init()
1036 const VkDescriptorSetAllocateInfo allocInfo = in init() local
1044 m_descriptorSets.push_back(allocateDescriptorSet(vk, vkDevice, &allocInfo)); in init()
/external/skqp/src/gpu/
DGrAHardwareBufferImageGenerator.cpp295 VkMemoryAllocateInfo allocInfo = { in make_vk_backend_texture() local
304 err = VK_CALL(AllocateMemory(device, &allocInfo, nullptr, &memory)); in make_vk_backend_texture()
/external/skia/third_party/vulkanmemoryallocator/include/
Dvk_mem_alloc.h7927 const VkMemoryAllocateInfo& allocInfo,
13111 VkMemoryAllocateInfo allocInfo = { VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO }; in CreateBlock() local
13112 allocInfo.memoryTypeIndex = m_MemoryTypeIndex; in CreateBlock()
13113 allocInfo.allocationSize = blockSize; in CreateBlock()
13121 VmaPnextChainPushFront(&allocInfo, &allocFlagsInfo); in CreateBlock()
13126 VkResult res = m_hAllocator->AllocateVulkanMemory(&allocInfo, &mem); in CreateBlock()
13141 allocInfo.allocationSize, in CreateBlock()
13792 AllocationInfo allocInfo = AllocationInfo(hAlloc, pChanged); in AddAllocation() local
13793 (*it)->m_Allocations.push_back(allocInfo); in AddAllocation()
13865 AllocationInfo& allocInfo = pSrcBlockInfo->m_Allocations[srcAllocIndex]; in DefragmentRound() local
[all …]

12