diff options
author | Jason Ekstrand <[email protected]> | 2015-05-27 11:41:28 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-05-27 11:48:28 -0700 |
commit | 59def43fc8bb8c980748004333a9b3d6a00f734b (patch) | |
tree | 7c5c9e72140b3b5dd51188ab93afd39fe76529a1 /src | |
parent | 1c63575de8870e80462dc4053938720d9ff58f26 (diff) |
Fixup for growable reloc lists
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/device.c | 4 | ||||
-rw-r--r-- | 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; |