Lines Matching refs:memory_properties
199 device->memory_properties.memoryHeapCount = 0;
216 vram_index = device->memory_properties.memoryHeapCount++;
218 device->memory_properties.memoryHeaps[vram_index] = (VkMemoryHeap){
225 gart_index = device->memory_properties.memoryHeapCount++;
227 device->memory_properties.memoryHeaps[gart_index] = (VkMemoryHeap){
234 visible_vram_index = device->memory_properties.memoryHeapCount++;
236 device->memory_properties.memoryHeaps[visible_vram_index] = (VkMemoryHeap){
247 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
254 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
263 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
272 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
283 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
289 device->memory_properties.memoryTypeCount = type_count;
292 for (int i = 0; i < device->memory_properties.memoryTypeCount; i++) {
293 VkMemoryType mem_type = device->memory_properties.memoryTypes[i];
306 device->memory_properties.memoryTypes[type_count++] = (VkMemoryType){
312 device->memory_properties.memoryTypeCount = type_count;
2688 VkPhysicalDeviceMemoryProperties *memory_properties = &device->memory_properties;
2705 assert(device->memory_properties.memoryHeaps[0].flags == 0); /* GTT */
2706 assert(device->memory_properties.memoryHeaps[1].flags == VK_MEMORY_HEAP_DEVICE_LOCAL_BIT);
2710 uint64_t gtt_heap_size = device->memory_properties.memoryHeaps[gtt_heap_idx].size;
2711 uint64_t vram_vis_heap_size = device->memory_properties.memoryHeaps[vram_vis_heap_idx].size;
2768 uint64_t free_space = device->memory_properties.memoryHeaps[heap].size -
2769 MIN2(device->memory_properties.memoryHeaps[heap].size, total_usage);
2775 assert(heap == memory_properties->memoryHeapCount);
2782 for (uint32_t i = memory_properties->memoryHeapCount; i < VK_MAX_MEMORY_HEAPS; i++) {
2794 pMemoryProperties->memoryProperties = pdevice->memory_properties;
2813 for (int i = 0; i < physical_device->memory_properties.memoryTypeCount; i++) {
5572 device->physical_device->memory_properties.memoryTypes[pAllocateInfo->memoryTypeIndex]
5593 device->physical_device->memory_properties.memoryHeaps[heap_index].size;
5707 ((1u << device->physical_device->memory_properties.memoryTypeCount) - 1u) &
5784 ((1u << device->physical_device->memory_properties.memoryTypeCount) - 1u) &
7106 for (unsigned i = 0; i < dev->memory_properties.memoryTypeCount; ++i) {