diff options
author | Jason Ekstrand <[email protected]> | 2015-07-29 15:28:51 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-29 15:30:15 -0700 |
commit | 3ed9cea84d42d7a5f37ed64d99a6a5ba064767f3 (patch) | |
tree | 186bd9ce58fb3ab110f2d760c8e7b1d359f35ef8 /src/vulkan/anv_private.h | |
parent | 0f31c580bfaa2788e8d320c0bf4acb9b70a90e05 (diff) |
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.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 7 |
1 files changed, 7 insertions, 0 deletions
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(). |