Home
last modified time | relevance | path

Searched refs:memory_requirements (Results 1 – 10 of 10) sorted by relevance

/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dvulkano_gralloc.rs166 let (unsafe_image, memory_requirements) = sys::UnsafeImage::new( in create_image()
183 Ok((unsafe_image, memory_requirements)) in create_image()
214 let (unsafe_image, memory_requirements) = unsafe { self.create_image(info)? }; in get_image_memory_requirements()
276 .filter(|&(t, _)| (memory_requirements.memory_type_bits & (1 << t.id())) != 0) in get_image_memory_requirements()
283 reqs.size = memory_requirements.size as u64; in get_image_memory_requirements()
302 let (unsafe_image, memory_requirements) = unsafe { self.create_image(reqs.info)? }; in allocate_memory()
341 if memory_requirements.prefer_dedicated { in allocate_memory()
/external/vulkan-validation-layers/tests/
Dvktestbinding.cpp510 …internal_mem_.init(dev, DeviceMemory::get_resource_alloc_info(dev, memory_requirements(), mem_prop… in NON_DISPATCHABLE_HANDLE_DTOR()
519 VkMemoryRequirements Buffer::memory_requirements() const { in memory_requirements() function in vk_testing::Buffer
543 …internal_mem_.init(dev, DeviceMemory::get_resource_alloc_info(dev, memory_requirements(), mem_prop… in NON_DISPATCHABLE_HANDLE_DTOR()
566 VkMemoryRequirements Image::memory_requirements() const { in memory_requirements() function in vk_testing::Image
618 VkMemoryRequirements2 AccelerationStructure::memory_requirements() const { in memory_requirements() function in vk_testing::AccelerationStructure
660 …memory_.init(dev, DeviceMemory::get_resource_alloc_info(dev, memory_requirements().memoryRequireme… in init()
Dvktestbinding.h418 VkMemoryRequirements memory_requirements() const;
487 VkMemoryRequirements memory_requirements() const;
569 VkMemoryRequirements2 memory_requirements() const;
Dlayer_validation_tests.cpp1198 VkMemoryRequirements memory_requirements; in VkBufferTest() local
1199 vkGetBufferMemoryRequirements(VulkanDevice, VulkanBuffer, &memory_requirements); in VkBufferTest()
1203 memory_allocate_info.allocationSize = memory_requirements.size + eOffsetAlignment; in VkBufferTest()
1204 …bool pass = aVulkanDevice->phy().set_memory_type(memory_requirements.memoryTypeBits, &memory_alloc… in VkBufferTest()
Dvklayertests_command.cpp4413 VkMemoryRequirements memory_requirements; in TEST_F() local
4460 vkGetBufferMemoryRequirements(m_device->device(), draw_buffer, &memory_requirements); in TEST_F()
4461 memory_allocate_info.allocationSize = memory_requirements.size; in TEST_F()
4462 …m_device->phy().set_memory_type(memory_requirements.memoryTypeBits, &memory_allocate_info, VK_MEMO… in TEST_F()
Dvklayertests_buffer_image_memory_sampler.cpp686 auto mem_reqs = image.memory_requirements(); in TEST_F()
6539 …k_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer.memory_requirements(), mem_flag… in TEST_F()
6559 auto offset = buffer.memory_requirements().alignment; in TEST_F()
6580 …vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, image.memory_requirements(), mem_flag… in TEST_F()
6595 auto image_offset = image.memory_requirements().alignment; in TEST_F()
Dvkpositivelayertests.cpp6577 …ng::DeviceMemory::get_resource_alloc_info(*m_device, buffer_export.memory_requirements(), mem_flag… in TEST_F()
6620 …ng::DeviceMemory::get_resource_alloc_info(*m_device, buffer_import.memory_requirements(), mem_flag… in TEST_F()
6852 …ce, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, buffer.memory_requirements(), 0)); in TEST_F()
6875 …ice, vk_testing::DeviceMemory::get_resource_alloc_info(*m_device, image.memory_requirements(), 0)); in TEST_F()
Dvklayertests_others.cpp4595 VkMemoryRequirements as_memory_requirements = as.memory_requirements().memoryRequirements; in TEST_F()
/external/vulkan-validation-layers/layers/
Dcore_validation_types.h346 VkMemoryRequirements2KHR memory_requirements;
356 memory_requirements{},
Dcore_validation.cpp6829 …tructureMemoryRequirementsNV(device, &as_memory_requirements_info, &as_state->memory_requirements); in PostCallRecordCreateAccelerationStructureNV()
6853 as_state->memory_requirements = *pMemoryRequirements; in PostCallRecordGetAccelerationStructureMemoryRequirementsNV()
6897 … as_state->memory_requirements.memoryRequirements, in ValidateBindAccelerationStructureMemoryNV()
6899 …skip |= ValidateMemoryTypes(mem_info, as_state->memory_requirements.memoryRequirements.memoryTypeB… in ValidateBindAccelerationStructureMemoryNV()
6905 …if (SafeModulo(info.memoryOffset, as_state->memory_requirements.memoryRequirements.alignment) != 0… in ValidateBindAccelerationStructureMemoryNV()
6912 … info.memoryOffset, as_state->memory_requirements.memoryRequirements.alignment); in ValidateBindAccelerationStructureMemoryNV()
6917 …if (as_state->memory_requirements.memoryRequirements.size > (mem_info->alloc_info.allocationSize -… in ValidateBindAccelerationStructureMemoryNV()
6925 as_state->memory_requirements.memoryRequirements.size); in ValidateBindAccelerationStructureMemoryNV()