Fixup for growable reloc lists
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user