Home
last modified time | relevance | path

Searched refs:mem_reqs (Results 1 – 7 of 7) sorted by relevance

/external/angle/src/tests/test_utils/third_party/
Dvulkan_command_buffer_utils.cpp1087 VkMemoryRequirements mem_reqs; in init_depth_buffer() local
1093 vkGetImageMemoryRequirements(info.device, info.depth.image, &mem_reqs); in init_depth_buffer()
1095 mem_alloc.allocationSize = mem_reqs.size; in init_depth_buffer()
1097 pass = memory_type_from_properties(info, mem_reqs.memoryTypeBits, in init_depth_buffer()
1137 VkMemoryRequirements mem_reqs; in init_uniform_buffer() local
1138 vkGetBufferMemoryRequirements(info.device, info.uniform_data.buf, &mem_reqs); in init_uniform_buffer()
1145 alloc_info.allocationSize = mem_reqs.size; in init_uniform_buffer()
1147 info, mem_reqs.memoryTypeBits, in init_uniform_buffer()
1156 res = vkMapMemory(info.device, info.uniform_data.mem, 0, mem_reqs.size, 0, (void **)&pData); in init_uniform_buffer()
1340 VkMemoryRequirements mem_reqs; in init_vertex_buffer() local
[all …]
/external/vulkan-validation-layers/tests/
Dvklayertests_buffer_image_memory_sampler.cpp438 VkMemoryRequirements mem_reqs; in TEST_F() local
454 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); in TEST_F()
463 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
478 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F()
481 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F()
554 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
612 VkMemoryRequirements mem_reqs; in TEST_F() local
645 vkGetImageMemoryRequirements(m_device->device(), image, &mem_reqs); in TEST_F()
647 mem_alloc.allocationSize = mem_reqs.size; in TEST_F()
648 pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc, 0); in TEST_F()
[all …]
Dvkpositivelayertests.cpp2233 VkMemoryRequirements mem_reqs; in TEST_F() local
2234 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); 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()
2603 VkMemoryRequirements mem_reqs; in TEST_F() local
2617 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); in TEST_F()
2627 …pass = m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &alloc_info, VK_MEMORY_PROPERTY_HO… in TEST_F()
2638 err = vkMapMemory(m_device->device(), mem, 0, mem_reqs.size, 0, (void **)&pData); in TEST_F()
2641 memset(pData, 0xCADECADE, static_cast<size_t>(mem_reqs.size)); in TEST_F()
[all …]
Dvklayertests_others.cpp3284 VkMemoryRequirements2 mem_reqs = {}; in TEST_F() local
3285 mem_reqs.sType = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2; in TEST_F()
3287 vkGetImageMemoryRequirements2(dev, &imri, &mem_reqs); in TEST_F()
3894 VkMemoryRequirements mem_reqs; in TEST_F() local
3895 vkGetBufferMemoryRequirements(dev, buf, &mem_reqs); in TEST_F()
3898 …MemoryAllocateInfo mai = vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, mem_reqs, 0); in TEST_F()
Dvklayertests_descriptor_renderpass_framebuffer.cpp5543 VkMemoryRequirements mem_reqs; in TEST_F() local
5544 vkGetBufferMemoryRequirements(m_device->device(), buffer, &mem_reqs); 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()
6747 VkMemoryRequirements mem_reqs; in TEST_F() local
6748 vkGetBufferMemoryRequirements(m_device->device(), dynamic_uniform_buffer, &mem_reqs); in TEST_F()
6752 mem_alloc_info.allocationSize = mem_reqs.size; in TEST_F()
6753 …m_device->phy().set_memory_type(mem_reqs.memoryTypeBits, &mem_alloc_info, VK_MEMORY_PROPERTY_HOST_… in TEST_F()
/external/vulkan-validation-layers/layers/
Dcore_validation.h786 … VkDeviceSize mem_offset, const VkMemoryRequirements& mem_reqs);
788 const VkMemoryRequirements& mem_reqs);
790 VkMemoryRequirements mem_reqs, bool is_linear);
1050 … const VkMemoryRequirements& mem_reqs, bool is_linear, const char* api_name) const;
1052 … const VkMemoryRequirements& mem_reqs, const char* api_name) const;
1054 … VkDeviceSize mem_offset, const VkMemoryRequirements& mem_reqs,
Dcore_validation.cpp4303 … const VkMemoryRequirements &mem_reqs, bool is_linear, const char *api_name) const { in ValidateInsertImageMemoryRange() argument
4304 …yRange(VulkanTypedHandle(image, kVulkanObjectTypeImage), mem_info, mem_offset, mem_reqs, is_linear, in ValidateInsertImageMemoryRange()
4308 VkMemoryRequirements mem_reqs, bool is_linear) { in InsertImageMemoryRange() argument
4309 …Range(VulkanTypedHandle(image, kVulkanObjectTypeImage), mem_info, mem_offset, mem_reqs, is_linear); in InsertImageMemoryRange()
4313 … const VkMemoryRequirements &mem_reqs, const char *api_name) const { in ValidateInsertBufferMemoryRange() argument
4314 …moryRange(VulkanTypedHandle(buffer, kVulkanObjectTypeBuffer), mem_info, mem_offset, mem_reqs, true, in ValidateInsertBufferMemoryRange()
4318 const VkMemoryRequirements &mem_reqs) { in InsertBufferMemoryRange() argument
4319 …oryRange(VulkanTypedHandle(buffer, kVulkanObjectTypeBuffer), mem_info, mem_offset, mem_reqs, true); in InsertBufferMemoryRange()
4323 … VkDeviceSize mem_offset, const VkMemoryRequirements &mem_reqs, in ValidateInsertAccelerationStructureMemoryRange() argument
4326 mem_reqs, true, api_name); in ValidateInsertAccelerationStructureMemoryRange()
[all …]