Lines Matching refs:memory_properties
190 device->memory_properties.memoryHeapCount = 0; in radv_physical_device_init_mem_types()
207 vram_index = device->memory_properties.memoryHeapCount++; in radv_physical_device_init_mem_types()
209 device->memory_properties.memoryHeaps[vram_index] = (VkMemoryHeap){ in radv_physical_device_init_mem_types()
216 gart_index = device->memory_properties.memoryHeapCount++; in radv_physical_device_init_mem_types()
218 device->memory_properties.memoryHeaps[gart_index] = (VkMemoryHeap){ in radv_physical_device_init_mem_types()
225 visible_vram_index = device->memory_properties.memoryHeapCount++; in radv_physical_device_init_mem_types()
227 device->memory_properties.memoryHeaps[visible_vram_index] = (VkMemoryHeap){ in radv_physical_device_init_mem_types()
238 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){ in radv_physical_device_init_mem_types()
247 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){ in radv_physical_device_init_mem_types()
256 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){ in radv_physical_device_init_mem_types()
267 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){ in radv_physical_device_init_mem_types()
273 device->memory_properties.memoryTypeCount = type_count; in radv_physical_device_init_mem_types()
276 for (int i = 0; i < device->memory_properties.memoryTypeCount; i++) { in radv_physical_device_init_mem_types()
277 VkMemoryType mem_type = device->memory_properties.memoryTypes[i]; in radv_physical_device_init_mem_types()
289 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){ in radv_physical_device_init_mem_types()
295 device->memory_properties.memoryTypeCount = type_count; in radv_physical_device_init_mem_types()
2396 *pMemoryProperties = physical_device->memory_properties; in radv_GetPhysicalDeviceMemoryProperties()
2404 VkPhysicalDeviceMemoryProperties *memory_properties = &device->memory_properties; in radv_get_memory_budget_properties() local
2421 assert(device->memory_properties.memoryHeaps[0].flags == 0); /* GTT */ in radv_get_memory_budget_properties()
2422 assert(device->memory_properties.memoryHeaps[1].flags == VK_MEMORY_HEAP_DEVICE_LOCAL_BIT); in radv_get_memory_budget_properties()
2426 uint64_t gtt_heap_size = device->memory_properties.memoryHeaps[gtt_heap_idx].size; in radv_get_memory_budget_properties()
2427 uint64_t vram_vis_heap_size = device->memory_properties.memoryHeaps[vram_vis_heap_idx].size; in radv_get_memory_budget_properties()
2484 uint64_t free_space = device->memory_properties.memoryHeaps[heap].size - in radv_get_memory_budget_properties()
2485 MIN2(device->memory_properties.memoryHeaps[heap].size, total_usage); in radv_get_memory_budget_properties()
2491 assert(heap == memory_properties->memoryHeapCount); in radv_get_memory_budget_properties()
2498 for (uint32_t i = memory_properties->memoryHeapCount; i < VK_MAX_MEMORY_HEAPS; i++) { in radv_get_memory_budget_properties()
2527 for (int i = 0; i < physical_device->memory_properties.memoryTypeCount; i++) { in radv_GetMemoryHostPointerPropertiesEXT()
5371 device->physical_device->memory_properties.memoryTypes[pAllocateInfo->memoryTypeIndex] in radv_alloc_memory()
5389 device->physical_device->memory_properties.memoryHeaps[heap_index].size; in radv_alloc_memory()
5512 (1u << device->physical_device->memory_properties.memoryTypeCount) - 1; in radv_get_buffer_memory_requirements()
5566 (1u << device->physical_device->memory_properties.memoryTypeCount) - 1; in radv_GetImageMemoryRequirements2()
7481 for (unsigned i = 0; i < dev->memory_properties.memoryTypeCount; ++i) { in radv_compute_valid_memory_types_attempt()