From 59def43fc8bb8c980748004333a9b3d6a00f734b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 27 May 2015 11:41:28 -0700 Subject: [PATCH] Fixup for growable reloc lists --- src/vulkan/device.c | 4 ++-- src/vulkan/private.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 90fe8246216..8c4bb67653d 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -501,7 +501,7 @@ VkResult anv_GetDeviceQueue( return VK_SUCCESS; } -static VkResult +VkResult anv_reloc_list_init(struct anv_reloc_list *list, struct anv_device *device) { list->num_relocs = 0; @@ -525,7 +525,7 @@ anv_reloc_list_init(struct anv_reloc_list *list, struct anv_device *device) return VK_SUCCESS; } -static void +void anv_reloc_list_finish(struct anv_reloc_list *list, struct anv_device *device) { anv_device_free(device, list->relocs); diff --git a/src/vulkan/private.h b/src/vulkan/private.h index a77fb28449b..8289772cfe1 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -396,6 +396,11 @@ struct anv_reloc_list { struct anv_bo ** reloc_bos; }; +VkResult anv_reloc_list_init(struct anv_reloc_list *list, + struct anv_device *device); +void anv_reloc_list_finish(struct anv_reloc_list *list, + struct anv_device *device); + struct anv_batch { struct anv_device * device; -- 2.30.2