Home
last modified time | relevance | path

Searched refs:alloc_info (Results 1 – 18 of 18) sorted by relevance

/external/bcc/examples/lua/
Dmemleak.lua156 local alloc_info = {}
167 if alloc_info[stack_id] then
168 local s = alloc_info[stack_id]
173 alloc_info[stack_id] = { stack=stack, count=1, size=tonumber(info.size) }
183 local top = table.values(alloc_info)
/external/deqp-deps/amber/src/vulkan/
Dresource.cc143 VkMemoryAllocateInfo alloc_info = VkMemoryAllocateInfo(); in AllocateMemory() local
144 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in AllocateMemory()
145 alloc_info.allocationSize = size; in AllocateMemory()
146 alloc_info.memoryTypeIndex = memory_type_index; in AllocateMemory()
147 if (device_->GetPtrs()->vkAllocateMemory(device_->GetVkDevice(), &alloc_info, in AllocateMemory()
/external/bcc/tools/
Dmemleak.py450 alloc_info = {}
458 if info.stack_id in alloc_info:
459 alloc_info[info.stack_id].update(info.size)
466 alloc_info[info.stack_id] = Allocation(combined,
471 to_show = sorted(alloc_info.values(),
/external/angle/src/tests/test_utils/third_party/
Dvulkan_command_buffer_utils.cpp1140 VkMemoryAllocateInfo alloc_info = {}; in init_uniform_buffer() local
1141 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in init_uniform_buffer()
1142 alloc_info.pNext = NULL; in init_uniform_buffer()
1143 alloc_info.memoryTypeIndex = 0; in init_uniform_buffer()
1145 alloc_info.allocationSize = mem_reqs.size; in init_uniform_buffer()
1149 &alloc_info.memoryTypeIndex); in init_uniform_buffer()
1152 res = vkAllocateMemory(info.device, &alloc_info, NULL, &(info.uniform_data.mem)); in init_uniform_buffer()
1343 VkMemoryAllocateInfo alloc_info = {}; in init_vertex_buffer() local
1344 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in init_vertex_buffer()
1345 alloc_info.pNext = NULL; in init_vertex_buffer()
[all …]
/external/vulkan-validation-layers/tests/
Dvkpositivelayertests.cpp1809 VkDescriptorSetAllocateInfo alloc_info = {}; in TEST_F() local
1810 alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; in TEST_F()
1811 alloc_info.descriptorSetCount = 1; in TEST_F()
1812 alloc_info.descriptorPool = ds_pool_one; in TEST_F()
1813 alloc_info.pSetLayouts = &ds_layout.handle(); in TEST_F()
1814 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info, &descriptorSet); in TEST_F()
2619 VkMemoryAllocateInfo alloc_info = {}; in TEST_F() local
2620 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
2621 alloc_info.pNext = NULL; in TEST_F()
2622 alloc_info.memoryTypeIndex = 0; in TEST_F()
[all …]
Dvktestbinding.cpp464 VkMemoryAllocateInfo info = alloc_info(reqs.size, mem_type_index); in get_resource_alloc_info()
789 VkDescriptorSetAllocateInfo alloc_info = {}; in alloc_sets() local
790 alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; in alloc_sets()
791 alloc_info.descriptorSetCount = layout_handles.size(); in alloc_sets()
792 alloc_info.descriptorPool = handle(); in alloc_sets()
793 alloc_info.pSetLayouts = layout_handles.data(); in alloc_sets()
794 VkResult err = vkAllocateDescriptorSets(device(), &alloc_info, set_handles.data()); in alloc_sets()
Dvklayertests_descriptor_renderpass_framebuffer.cpp3645 VkDescriptorSetAllocateInfo alloc_info = {}; in TEST_F() local
3646 alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; in TEST_F()
3647 alloc_info.descriptorSetCount = 2; in TEST_F()
3648 alloc_info.descriptorPool = ds_pool; in TEST_F()
3649 alloc_info.pSetLayouts = set_layouts; in TEST_F()
3652 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info, descriptor_sets); in TEST_F()
3655 alloc_info.descriptorSetCount = 1; in TEST_F()
3667 alloc_info.descriptorSetCount = 1; in TEST_F()
3668 alloc_info.pSetLayouts = &ds_layout_ub.handle(); in TEST_F()
3670 err = vkAllocateDescriptorSets(m_device->device(), &alloc_info, &descriptor_set); in TEST_F()
[all …]
Dvklayertests_buffer_image_memory_sampler.cpp455 VkMemoryAllocateInfo alloc_info = {}; in TEST_F() local
456 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
457 alloc_info.pNext = NULL; in TEST_F()
458 alloc_info.memoryTypeIndex = 0; in TEST_F()
462 alloc_info.allocationSize = allocation_size; in TEST_F()
463 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
469 err = vkAllocateMemory(m_device->device(), &alloc_info, NULL, &mem); in TEST_F()
554 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
688 auto image_alloc_info = vk_testing::DeviceMemory::alloc_info(mem_reqs.size, 0); in TEST_F()
2625 VkMemoryAllocateInfo alloc_info = {}; in TEST_F() local
[all …]
Dvklayertests_others.cpp488 VkMemoryAllocateInfo alloc_info = {}; in TEST_F() local
490 vkAllocateMemory(device(), &alloc_info, NULL, &memory); in TEST_F()
1214 VkMemoryAllocateInfo alloc_info = {}; in TEST_F() local
1215 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
1216 alloc_info.pNext = &alloc_flags_info; in TEST_F()
1217 alloc_info.memoryTypeIndex = 0; in TEST_F()
1218 alloc_info.allocationSize = 32; in TEST_F()
1222 vkAllocateMemory(m_device->device(), &alloc_info, NULL, &mem); in TEST_F()
1227 vkAllocateMemory(m_device->device(), &alloc_info, NULL, &mem); in TEST_F()
Dvktestbinding.h319 static VkMemoryAllocateInfo alloc_info(VkDeviceSize size, uint32_t memory_type_index);
770 inline VkMemoryAllocateInfo DeviceMemory::alloc_info(VkDeviceSize size, uint32_t memory_type_index)… in alloc_info() function
Dvklayertests_command.cpp986 VkCommandBufferAllocateInfo alloc_info; in TEST_F() local
987 alloc_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO; in TEST_F()
988 alloc_info.pNext = NULL; in TEST_F()
989 alloc_info.commandBufferCount = 2; in TEST_F()
990 alloc_info.commandPool = m_commandPool->handle(); in TEST_F()
991 alloc_info.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY; in TEST_F()
992 vkAllocateCommandBuffers(m_device->device(), &alloc_info, cmd_bufs); in TEST_F()
Dlayer_validation_tests.cpp1342 …VkDescriptorSetAllocateInfo alloc_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, allocate… local
1344 err = vkAllocateDescriptorSets(device_->handle(), &alloc_info, &set_);
/external/mesa3d/src/vulkan/overlay-layer/
Doverlay.cpp1142 VkMemoryAllocateInfo alloc_info = {}; in CreateOrResizeBuffer() local
1143 alloc_info.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in CreateOrResizeBuffer()
1144 alloc_info.allocationSize = req.size; in CreateOrResizeBuffer()
1145 alloc_info.memoryTypeIndex = in CreateOrResizeBuffer()
1147 VK_CHECK(data->vtable.AllocateMemory(data->device, &alloc_info, NULL, buffer_memory)); in CreateOrResizeBuffer()
1479 VkDescriptorSetAllocateInfo alloc_info = {}; in setup_swapchain_data_pipeline() local
1480 alloc_info.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; in setup_swapchain_data_pipeline()
1481 alloc_info.descriptorPool = data->descriptor_pool; in setup_swapchain_data_pipeline()
1482 alloc_info.descriptorSetCount = 1; in setup_swapchain_data_pipeline()
1483 alloc_info.pSetLayouts = &data->descriptor_layout; in setup_swapchain_data_pipeline()
[all …]
/external/vulkan-validation-layers/layers/
Dcore_validation.cpp3499 bool CoreChecks::ValidateAllocateMemoryANDROID(const VkMemoryAllocateInfo *alloc_info) const { in ValidateAllocateMemoryANDROID()
3501 …auto import_ahb_info = lvl_find_in_chain<VkImportAndroidHardwareBufferInfoANDROID>(alloc_info->pNe… in ValidateAllocateMemoryANDROID()
3502 auto exp_mem_alloc_info = lvl_find_in_chain<VkExportMemoryAllocateInfo>(alloc_info->pNext); in ValidateAllocateMemoryANDROID()
3503 auto mem_ded_alloc_info = lvl_find_in_chain<VkMemoryDedicatedAllocateInfo>(alloc_info->pNext); in ValidateAllocateMemoryANDROID()
3596 if (alloc_info->allocationSize != ahb_props.allocationSize) { in ValidateAllocateMemoryANDROID()
3602 alloc_info->allocationSize, ahb_props.allocationSize); in ValidateAllocateMemoryANDROID()
3607 uint32_t mem_type_bitmask = 1 << alloc_info->memoryTypeIndex; in ValidateAllocateMemoryANDROID()
3615 alloc_info->memoryTypeIndex, ahb_props.memoryTypeBits); in ValidateAllocateMemoryANDROID()
3728 if (0 != alloc_info->allocationSize) { in ValidateAllocateMemoryANDROID()
3735 if (0 == alloc_info->allocationSize) { in ValidateAllocateMemoryANDROID()
[all …]
Dcore_validation_types.h371 VkMemoryAllocateInfo alloc_info;
393 alloc_info(*p_alloc_info),
Dgpu_validation.cpp99 …VkDescriptorSetAllocateInfo alloc_info = {VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, NULL, po… in GetDescriptorSets() local
102 result = DispatchAllocateDescriptorSets(dev_data_->device, &alloc_info, desc_sets->data()); in GetDescriptorSets()
Dcore_validation.h1542 bool ValidateAllocateMemoryANDROID(const VkMemoryAllocateInfo* alloc_info) const;
/external/mesa3d/src/broadcom/vulkan/
Dv3dv_meta_copy.c2697 VkMemoryAllocateInfo alloc_info = { in copy_buffer_to_image_blit() local
2702 result = v3dv_AllocateMemory(_device, &alloc_info, &device->alloc, &mem); in copy_buffer_to_image_blit()