diff options
author | Jason Ekstrand <[email protected]> | 2015-09-24 08:46:39 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-24 08:46:41 -0700 |
commit | 913a9b76f78fd6fbef3658667acf2d737d656eb2 (patch) | |
tree | 54bf55c1fcba929d2522f5550fe75ea7f34c0ec6 /src/vulkan | |
parent | bc17f9c9d76dbf2cdc657cfb6861b887dbca3046 (diff) |
anv/batch_chain: Remove the current_surface_bo helper
It's no longer used outside anv_batch_chain so we certainly don't need to
be exporting. Inside anv_batch_chain, it's only used twice and it can be
replaced by a single line so there's really no point.
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_batch_chain.c | 10 | ||||
-rw-r--r-- | src/vulkan/anv_private.h | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index 6c37ce0aca3..aaf65c33f84 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -383,12 +383,6 @@ anv_cmd_buffer_current_surface_bbo(struct anv_cmd_buffer *cmd_buffer) return LIST_ENTRY(struct anv_batch_bo, cmd_buffer->surface_bos.prev, link); } -struct anv_bo * -anv_cmd_buffer_current_surface_bo(struct anv_cmd_buffer *cmd_buffer) -{ - return &anv_cmd_buffer_current_surface_bbo(cmd_buffer)->bo; -} - struct anv_reloc_list * anv_cmd_buffer_current_surface_relocs(struct anv_cmd_buffer *cmd_buffer) { @@ -399,7 +393,7 @@ struct anv_address anv_cmd_buffer_surface_base_address(struct anv_cmd_buffer *cmd_buffer) { return (struct anv_address) { - .bo = anv_cmd_buffer_current_surface_bo(cmd_buffer), + .bo = &anv_cmd_buffer_current_surface_bbo(cmd_buffer)->bo, .offset = 0, }; } @@ -478,7 +472,7 @@ anv_cmd_buffer_alloc_surface_state(struct anv_cmd_buffer *cmd_buffer, uint32_t size, uint32_t alignment) { struct anv_bo *surface_bo = - anv_cmd_buffer_current_surface_bo(cmd_buffer); + &anv_cmd_buffer_current_surface_bbo(cmd_buffer)->bo; struct anv_state state; state.offset = align_u32(cmd_buffer->surface_next, alignment); diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 2e8bfa2c1d6..f710cefe36c 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -893,8 +893,6 @@ struct anv_state anv_cmd_buffer_merge_dynamic(struct anv_cmd_buffer *cmd_buffer, void anv_cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer, struct anv_subpass *subpass); -struct anv_bo * -anv_cmd_buffer_current_surface_bo(struct anv_cmd_buffer *cmd_buffer); struct anv_reloc_list * anv_cmd_buffer_current_surface_relocs(struct anv_cmd_buffer *cmd_buffer); struct anv_address |