From: Jason Ekstrand Date: Wed, 27 May 2015 18:41:28 +0000 (-0700) Subject: Fixup for growable reloc lists X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=59def43fc8bb8c980748004333a9b3d6a00f734b;p=mesa.git Fixup for growable reloc lists --- 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;