Fixup for growable reloc lists

This commit is contained in:
Jason Ekstrand
2015-05-27 11:41:28 -07:00
parent 1c63575de8
commit 59def43fc8
2 changed files with 7 additions and 2 deletions

View File

@@ -501,7 +501,7 @@ VkResult anv_GetDeviceQueue(
return VK_SUCCESS; return VK_SUCCESS;
} }
static VkResult VkResult
anv_reloc_list_init(struct anv_reloc_list *list, struct anv_device *device) anv_reloc_list_init(struct anv_reloc_list *list, struct anv_device *device)
{ {
list->num_relocs = 0; list->num_relocs = 0;
@@ -525,7 +525,7 @@ anv_reloc_list_init(struct anv_reloc_list *list, struct anv_device *device)
return VK_SUCCESS; return VK_SUCCESS;
} }
static void void
anv_reloc_list_finish(struct anv_reloc_list *list, struct anv_device *device) anv_reloc_list_finish(struct anv_reloc_list *list, struct anv_device *device)
{ {
anv_device_free(device, list->relocs); anv_device_free(device, list->relocs);

View File

@@ -396,6 +396,11 @@ struct anv_reloc_list {
struct anv_bo ** reloc_bos; 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_batch {
struct anv_device * device; struct anv_device * device;