diff options
author | Jason Ekstrand <[email protected]> | 2015-07-29 09:23:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-29 12:01:08 -0700 |
commit | 7d507342403c775639383f0e228a081d2e3d4b44 (patch) | |
tree | c847391f63fd2927d87096be16307f93c3a5b802 /src/vulkan/anv_private.h | |
parent | fcea3e2d23b7a02f9cc4b58870ac59107bcf0050 (diff) |
vk/batch: Make relocs a pointer to a relocation list
Previously anv_batch.relocs was an actual relocation list. However, this
is limiting if the implementation of the batch wants to change the
relocation list as the batch progresses.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 3258e8c2adc..cb302c96162 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -483,7 +483,7 @@ struct anv_batch { void * end; void * next; - struct anv_reloc_list relocs; + struct anv_reloc_list * relocs; /* This callback is called (with the associated user data) in the event * that the batch runs out of space. @@ -702,6 +702,7 @@ struct anv_cmd_buffer { * These fields are initialized by anv_cmd_buffer_init_batch_bo_chain(). */ struct list_head batch_bos; + struct anv_reloc_list batch_relocs; struct list_head surface_bos; uint32_t surface_next; struct anv_reloc_list surface_relocs; @@ -783,6 +784,7 @@ struct anv_pipeline { struct anv_device * device; struct anv_batch batch; uint32_t batch_data[256]; + struct anv_reloc_list batch_relocs; struct anv_shader * shaders[VK_SHADER_STAGE_NUM]; struct anv_pipeline_layout * layout; bool use_repclear; |