diff options
author | Jason Ekstrand <[email protected]> | 2015-07-29 12:01:02 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-07-29 12:01:08 -0700 |
commit | 4fc7510a7cb370bcbdeaa1d54b4f51222484bb31 (patch) | |
tree | 72afbfe90beec4a3daed252219580d3a9b681d68 /src | |
parent | 8208f01a359ee7037ae46b7617cc72baf7771044 (diff) |
vk/cmd_buffer: Move emit_batch_buffer_end higher in the file
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index d7a006d9b7a..e673ac6f94e 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -474,6 +474,20 @@ anv_cmd_buffer_reset_batch_bo_chain(struct anv_cmd_buffer *cmd_buffer) cmd_buffer->surface_next = 1; } +void +anv_cmd_buffer_emit_batch_buffer_end(struct anv_cmd_buffer *cmd_buffer) +{ + struct anv_batch_bo *batch_bo = anv_cmd_buffer_current_batch_bo(cmd_buffer); + struct anv_batch_bo *surface_bbo = + anv_cmd_buffer_current_surface_bbo(cmd_buffer); + + anv_batch_emit(&cmd_buffer->batch, GEN8_MI_BATCH_BUFFER_END); + + anv_batch_bo_finish(batch_bo, &cmd_buffer->batch); + + surface_bbo->length = cmd_buffer->surface_next; +} + static VkResult anv_cmd_buffer_add_bo(struct anv_cmd_buffer *cmd_buffer, struct anv_bo *bo, @@ -570,20 +584,6 @@ anv_cmd_buffer_process_relocs(struct anv_cmd_buffer *cmd_buffer, } void -anv_cmd_buffer_emit_batch_buffer_end(struct anv_cmd_buffer *cmd_buffer) -{ - struct anv_batch_bo *batch_bo = anv_cmd_buffer_current_batch_bo(cmd_buffer); - struct anv_batch_bo *surface_bbo = - anv_cmd_buffer_current_surface_bbo(cmd_buffer); - - anv_batch_emit(&cmd_buffer->batch, GEN8_MI_BATCH_BUFFER_END); - - anv_batch_bo_finish(batch_bo, &cmd_buffer->batch); - - surface_bbo->length = cmd_buffer->surface_next; -} - -void anv_cmd_buffer_prepare_execbuf(struct anv_cmd_buffer *cmd_buffer) { struct anv_batch *batch = &cmd_buffer->batch; |