radv: remove declared but unused create_null_physical_device()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41755>
This commit is contained in:
Samuel Pitoiset 2026-05-22 17:52:36 +02:00 committed by Marge Bot
parent 921eedee8b
commit f8ce76e996
2 changed files with 0 additions and 16 deletions

View file

@ -2788,20 +2788,6 @@ fail_fd:
#endif
}
VkResult
create_null_physical_device(struct vk_instance *vk_instance)
{
struct radv_instance *instance = container_of(vk_instance, struct radv_instance, vk);
struct radv_physical_device *pdev;
VkResult result = radv_physical_device_try_create(instance, NULL, &pdev);
if (result != VK_SUCCESS)
return result;
list_addtail(&pdev->vk.link, &instance->vk.physical_devices.list);
return VK_SUCCESS;
}
VkResult
create_drm_physical_device(struct vk_instance *vk_instance, struct _drmDevice *device, struct vk_physical_device **out)
{

View file

@ -253,8 +253,6 @@ bool radv_are_dcc_mips_disabled(const struct radv_physical_device *pdev);
uint32_t radv_find_memory_index(const struct radv_physical_device *pdev, VkMemoryPropertyFlags flags);
VkResult create_null_physical_device(struct vk_instance *vk_instance);
VkResult create_drm_physical_device(struct vk_instance *vk_instance, struct _drmDevice *device,
struct vk_physical_device **out);