Searched refs:mem_reqs (Results 1 – 5 of 5) sorted by relevance
/external/vulkan-validation-layers/demos/smoke/ |
D | Smoke.cpp | 483 VkMemoryRequirements mem_reqs; in create_buffer_memory() local 484 vk::GetBufferMemoryRequirements(dev_, frame_data_[0].buf, &mem_reqs); in create_buffer_memory() 486 VkDeviceSize aligned_size = mem_reqs.size; in create_buffer_memory() 487 if (aligned_size % mem_reqs.alignment) in create_buffer_memory() 488 aligned_size += mem_reqs.alignment - (aligned_size % mem_reqs.alignment); in create_buffer_memory() 494 mem_reqs.size; in create_buffer_memory() 497 if ((mem_reqs.memoryTypeBits & (1 << idx)) && in create_buffer_memory()
|
/external/vulkan-validation-layers/demos/ |
D | cube.cpp | 1469 vk::MemoryRequirements mem_reqs; in prepare_cube_data_buffer() local 1470 device.getBufferMemoryRequirements(uniform_data.buf, &mem_reqs); in prepare_cube_data_buffer() 1472 uniform_data.mem_alloc.setAllocationSize(mem_reqs.size); in prepare_cube_data_buffer() 1476 mem_reqs.memoryTypeBits, in prepare_cube_data_buffer() 1524 vk::MemoryRequirements mem_reqs; in prepare_depth() local 1525 device.getImageMemoryRequirements(depth.image, &mem_reqs); in prepare_depth() 1527 depth.mem_alloc.setAllocationSize(mem_reqs.size); in prepare_depth() 1531 mem_reqs.memoryTypeBits, vk::MemoryPropertyFlagBits(0), in prepare_depth() 1867 vk::MemoryRequirements mem_reqs; in prepare_texture_image() local 1868 device.getImageMemoryRequirements(tex_obj->image, &mem_reqs); in prepare_texture_image() [all …]
|
D | cube.c | 1108 VkMemoryRequirements mem_reqs; in demo_prepare_depth() local 1118 vkGetImageMemoryRequirements(demo->device, demo->depth.image, &mem_reqs); in demo_prepare_depth() 1123 demo->depth.mem_alloc.allocationSize = mem_reqs.size; in demo_prepare_depth() 1126 pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, in demo_prepare_depth() 1261 VkMemoryRequirements mem_reqs; in demo_prepare_texture_image() local 1267 vkGetImageMemoryRequirements(demo->device, tex_obj->image, &mem_reqs); in demo_prepare_texture_image() 1271 tex_obj->mem_alloc.allocationSize = mem_reqs.size; in demo_prepare_texture_image() 1274 pass = memory_type_from_properties(demo, mem_reqs.memoryTypeBits, in demo_prepare_texture_image() 1457 VkMemoryRequirements mem_reqs; in demo_prepare_cube_data_buffer() local 1490 &mem_reqs); in demo_prepare_cube_data_buffer() [all …]
|
/external/vulkan-validation-layers/tests/ |
D | layer_validation_tests.cpp | 1388 VkMemoryRequirements mem_reqs; in TEST_F() local 1402 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); in TEST_F() 1411 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F() 1425 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F() 1429 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F() 1467 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F() 1721 VkMemoryRequirements mem_reqs; in TEST_F() local 1751 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs); in TEST_F() 1753 mem_alloc.allocationSize = mem_reqs.size; in TEST_F() 1755 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0, VK_MEMORY_PROPERTY_… in TEST_F() [all …]
|
/external/vulkan-validation-layers/layers/ |
D | core_validation.cpp | 5684 VkMemoryRequirements mem_reqs, bool is_linear) { in InsertImageMemoryRange() argument 5685 …ge(dev_data, reinterpret_cast<uint64_t &>(image), mem_info, mem_offset, mem_reqs, true, is_linear); in InsertImageMemoryRange() 5689 VkMemoryRequirements mem_reqs) { in InsertBufferMemoryRange() argument 5690 …Range(dev_data, reinterpret_cast<uint64_t &>(buffer), mem_info, mem_offset, mem_reqs, false, true); in InsertBufferMemoryRange()
|