Home
last modified time | relevance | path

Searched refs:mem_alloc (Results 1 – 16 of 16) sorted by relevance

/external/vulkan-validation-layers/tests/
Dvklayertests_buffer_image_memory_sampler.cpp577 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
578 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
579 mem_alloc.pNext = NULL; in TEST_F()
580 mem_alloc.allocationSize = 1024; in TEST_F()
582 …pass = m_device->phy().set_memory_type(0xFFFFFFFF, &mem_alloc, 0, VK_MEMORY_PROPERTY_HOST_VISIBLE_… in TEST_F()
590 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem); in TEST_F()
633 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
634 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
635 mem_alloc.pNext = NULL; in TEST_F()
636 mem_alloc.allocationSize = 0; in TEST_F()
[all …]
Dvkpositivelayertests.cpp2227 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
2228 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
2229 mem_alloc.pNext = NULL; in TEST_F()
2230 mem_alloc.allocationSize = 512; // one allocation for both buffers in TEST_F()
2231 mem_alloc.memoryTypeIndex = 0; in TEST_F()
2235 bool pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0); in TEST_F()
2242 if (mem_reqs.size > mem_alloc.allocationSize) { in TEST_F()
2243 mem_alloc.allocationSize = mem_reqs.size; in TEST_F()
2247 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem); in TEST_F()
2691 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
[all …]
Dvklayertests_descriptor_renderpass_framebuffer.cpp5546 VkMemoryAllocateInfo mem_alloc = {}; in TEST_F() local
5547 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in TEST_F()
5548 mem_alloc.pNext = NULL; in TEST_F()
5549 mem_alloc.allocationSize = mem_reqs.size; in TEST_F()
5550 bool pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0); in TEST_F()
5558 err = vkAllocateMemory(m_device->device(), &mem_alloc, NULL, &mem); in TEST_F()
/external/rust/android-crates-io/crates/vulkano/src/image/
Dstorage.rs371 let mem_alloc = MemoryAlloc::new(memory).unwrap(); in new_from_dma_buf_fd() localVariable
373 debug_assert!(mem_alloc.offset() % requirements.layout.alignment().as_nonzero() == 0); in new_from_dma_buf_fd()
374 debug_assert!(mem_alloc.size() == requirements.layout.size()); in new_from_dma_buf_fd()
378 .bind_memory_unchecked([mem_alloc]) in new_from_dma_buf_fd()
/external/executorch/examples/qualcomm/oss_scripts/llama2/
Dqnn_llama_runner.cpp74 runner.mem_alloc(MemoryAllocator::kDefaultAlignment, seq_len) == in main()
/external/sg3_utils/lib/
Dsg_json_builder.h89 void * (* mem_alloc) (size_t, int zero, void * user_data); member
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_texture.h147 struct llvmpipe_memory_allocation *mem_alloc; member
Dlp_texture.c457 (struct pipe_memory_allocation **)&memobj->mem_alloc, in llvmpipe_memobj_create_from_handle()
478 pscreen->free_memory_fd(pscreen, (struct pipe_memory_allocation *)lpmo->mem_alloc); in llvmpipe_memobj_destroy()
508 lpr->tex_data = lpmo->mem_alloc->cpu_addr; in llvmpipe_resource_from_memobj()
534 lpr->data = lpmo->mem_alloc->cpu_addr; in llvmpipe_resource_from_memobj()
/external/pdfium/third_party/libtiff/
Dtif_print.c619 int mem_alloc = 0; in TIFFPrintDirectory() local
683 mem_alloc = 1; in TIFFPrintDirectory()
703 if (mem_alloc) in TIFFPrintDirectory()
/external/angle/src/tests/test_utils/third_party/
Dvulkan_command_buffer_utils.cpp1060 VkMemoryAllocateInfo mem_alloc = {}; in init_depth_buffer() local
1061 mem_alloc.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO; in init_depth_buffer()
1062 mem_alloc.pNext = NULL; in init_depth_buffer()
1063 mem_alloc.allocationSize = 0; in init_depth_buffer()
1064 mem_alloc.memoryTypeIndex = 0; in init_depth_buffer()
1097 mem_alloc.allocationSize = mem_reqs.size; in init_depth_buffer()
1101 &mem_alloc.memoryTypeIndex); in init_depth_buffer()
1105 res = vkAllocateMemory(info.device, &mem_alloc, NULL, &info.depth.mem); in init_depth_buffer()
/external/zlib/patches/
D0005-infcover-gtest.patch54 @@ -72,7 +87,7 @@ local void *mem_alloc(void *mem, unsigned count, unsigned size)
63 @@ -87,7 +102,7 @@ local void *mem_alloc(void *mem, unsigned count, unsigned size)
72 @@ -112,7 +127,7 @@ local void *mem_alloc(void *mem, unsigned count, unsigned size)
/external/zlib/contrib/tests/
Dinfcover.cc86 local void *mem_alloc(void *mem, unsigned count, unsigned size) in mem_alloc() function
186 strm->zalloc = mem_alloc; in mem_setup()
/external/executorch/examples/qualcomm/oss_scripts/llama2/runner/
Drunner.h236 executorch::runtime::Error mem_alloc(size_t alignment, size_t seq_len);
Drunner.cpp641 Error Runner::mem_alloc(size_t alignment, size_t seq_len) { in mem_alloc() function in example::Runner
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_private.h240 struct llvmpipe_memory_allocation mem_alloc; member
Dlvp_device.c1969 mem->mem_alloc = (struct llvmpipe_memory_allocation) { in lvp_AllocateMemory()
1972 mem->pmem = (void *)&mem->mem_alloc; in lvp_AllocateMemory()