mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
radv: Use common GetPhysicalDeviceMemoryProperties
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15613>
This commit is contained in:
parent
3b39e4d913
commit
87b65af43e
1 changed files with 3 additions and 10 deletions
|
|
@ -2500,15 +2500,6 @@ radv_GetPhysicalDeviceQueueFamilyProperties2(VkPhysicalDevice physicalDevice, ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VKAPI_ATTR void VKAPI_CALL
|
|
||||||
radv_GetPhysicalDeviceMemoryProperties(VkPhysicalDevice physicalDevice,
|
|
||||||
VkPhysicalDeviceMemoryProperties *pMemoryProperties)
|
|
||||||
{
|
|
||||||
RADV_FROM_HANDLE(radv_physical_device, physical_device, physicalDevice);
|
|
||||||
|
|
||||||
*pMemoryProperties = physical_device->memory_properties;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
radv_get_memory_budget_properties(VkPhysicalDevice physicalDevice,
|
radv_get_memory_budget_properties(VkPhysicalDevice physicalDevice,
|
||||||
VkPhysicalDeviceMemoryBudgetPropertiesEXT *memoryBudget)
|
VkPhysicalDeviceMemoryBudgetPropertiesEXT *memoryBudget)
|
||||||
|
|
@ -2618,7 +2609,9 @@ VKAPI_ATTR void VKAPI_CALL
|
||||||
radv_GetPhysicalDeviceMemoryProperties2(VkPhysicalDevice physicalDevice,
|
radv_GetPhysicalDeviceMemoryProperties2(VkPhysicalDevice physicalDevice,
|
||||||
VkPhysicalDeviceMemoryProperties2 *pMemoryProperties)
|
VkPhysicalDeviceMemoryProperties2 *pMemoryProperties)
|
||||||
{
|
{
|
||||||
radv_GetPhysicalDeviceMemoryProperties(physicalDevice, &pMemoryProperties->memoryProperties);
|
RADV_FROM_HANDLE(radv_physical_device, pdevice, physicalDevice);
|
||||||
|
|
||||||
|
pMemoryProperties->memoryProperties = pdevice->memory_properties;
|
||||||
|
|
||||||
VkPhysicalDeviceMemoryBudgetPropertiesEXT *memory_budget =
|
VkPhysicalDeviceMemoryBudgetPropertiesEXT *memory_budget =
|
||||||
vk_find_struct(pMemoryProperties->pNext, PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT);
|
vk_find_struct(pMemoryProperties->pNext, PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue