anv: Add a helper to add a BO to the batch list without a reloc
The relocation list currently serves two purposes. One is for relocations on older non-softpin platforms. The second is to keep track of driver-managed BOs which are used by the given command buffer. We going to need a mechanism to add BOs to the command buffer without doing a relocation into the batch. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11236>
This commit is contained in:

committed by
Marge Bot

parent
7e8c28383c
commit
9802a0d7ca
@@ -1523,6 +1523,10 @@ VkResult anv_reloc_list_add(struct anv_reloc_list *list,
|
||||
uint32_t offset, struct anv_bo *target_bo,
|
||||
uint32_t delta, uint64_t *address_u64_out);
|
||||
|
||||
VkResult anv_reloc_list_add_bo(struct anv_reloc_list *list,
|
||||
const VkAllocationCallbacks *alloc,
|
||||
struct anv_bo *target_bo);
|
||||
|
||||
struct anv_batch_bo {
|
||||
/* Link in the anv_cmd_buffer.owned_batch_bos list */
|
||||
struct list_head link;
|
||||
|
Reference in New Issue
Block a user