@@ -741,7 +741,7 @@ VkBufferMemory* VkBlobAllocator::fastMalloc(size_t size)
741
741
742
742
// on amd integrated gpu, there is a faster and larger device-only heap
743
743
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements.memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
744
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
744
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
745
745
uint32_t buffer_heap_index = memory_properties.memoryTypes [buffer_memory_type_index].heapIndex ;
746
746
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
747
747
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
@@ -1003,7 +1003,7 @@ VkImageMemory* VkBlobAllocator::fastMalloc(int w, int h, int c, size_t elemsize,
1003
1003
1004
1004
// on amd integrated gpu, there is a faster and larger device-only heap
1005
1005
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements.memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
1006
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
1006
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
1007
1007
uint32_t buffer_heap_index = memory_properties.memoryTypes [image_memory_type_index].heapIndex ;
1008
1008
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
1009
1009
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
@@ -1322,7 +1322,7 @@ VkBufferMemory* VkWeightAllocator::fastMalloc(size_t size)
1322
1322
1323
1323
// on amd integrated gpu, there is a faster and larger device-only heap
1324
1324
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements2.memoryRequirements .memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
1325
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
1325
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
1326
1326
uint32_t buffer_heap_index = memory_properties.memoryTypes [buffer_memory_type_index].heapIndex ;
1327
1327
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
1328
1328
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
@@ -1381,7 +1381,7 @@ VkBufferMemory* VkWeightAllocator::fastMalloc(size_t size)
1381
1381
1382
1382
// on amd integrated gpu, there is a faster and larger device-only heap
1383
1383
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements.memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
1384
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
1384
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
1385
1385
uint32_t buffer_heap_index = memory_properties.memoryTypes [buffer_memory_type_index].heapIndex ;
1386
1386
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
1387
1387
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
@@ -1527,7 +1527,7 @@ VkImageMemory* VkWeightAllocator::fastMalloc(int w, int h, int c, size_t elemsiz
1527
1527
1528
1528
// on amd integrated gpu, there is a faster and larger device-only heap
1529
1529
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements2.memoryRequirements .memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
1530
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
1530
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
1531
1531
uint32_t buffer_heap_index = memory_properties.memoryTypes [image_memory_type_index].heapIndex ;
1532
1532
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
1533
1533
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
@@ -1631,7 +1631,7 @@ VkImageMemory* VkWeightAllocator::fastMalloc(int w, int h, int c, size_t elemsiz
1631
1631
1632
1632
// on amd integrated gpu, there is a faster and larger device-only heap
1633
1633
uint32_t device_local_memory_type_index = vkdev->find_memory_index (memoryRequirements.memoryTypeBits , VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, 0 , VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);
1634
- const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physical_device_memory_properties ();
1634
+ const VkPhysicalDeviceMemoryProperties& memory_properties = vkdev->info .physicalDeviceMemoryProperties ();
1635
1635
uint32_t buffer_heap_index = memory_properties.memoryTypes [image_memory_type_index].heapIndex ;
1636
1636
uint32_t device_local_heap_index = memory_properties.memoryTypes [device_local_memory_type_index].heapIndex ;
1637
1637
if (device_local_heap_index < buffer_heap_index && memory_properties.memoryHeaps [device_local_heap_index].size > memory_properties.memoryHeaps [buffer_heap_index].size )
0 commit comments