From 3ed9cea84d42d7a5f37ed64d99a6a5ba064767f3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Jul 2015 15:28:51 -0700 Subject: vk/cmd_buffer: Use an array to track all know anv_batch_bo objects Instead of walking the list of batch and surface buffers, we simply keep track of all known batch and surface buffers as we build the command buffer. Then we use this new list to construct the validate list. --- src/vulkan/anv_private.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vulkan/anv_private.h') diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 1d04dfca9d7..a3787229a74 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -703,6 +703,13 @@ struct anv_cmd_buffer { struct list_head surface_bos; uint32_t surface_next; + /* A vector of anv_batch_bo pointers for every batch or surface buffer + * referenced by this command buffer + * + * initialized by anv_cmd_buffer_init_batch_bo_chain() + */ + struct anv_vector seen_bbos; + /* Information needed for execbuf * * These fields are generated by anv_cmd_buffer_prepare_execbuf(). -- cgit v1.2.3