From: Jason Ekstrand Date: Wed, 15 Jul 2015 23:29:40 +0000 (-0700) Subject: vk/private.h: Move cmd_buffer functions to near the cmd_buffer struct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ccc8dd24ae254e10994b89e78f55d2003e0a12e;p=mesa.git vk/private.h: Move cmd_buffer functions to near the cmd_buffer struct --- diff --git a/src/vulkan/private.h b/src/vulkan/private.h index 814ad504470..cd80c896f35 100644 --- a/src/vulkan/private.h +++ b/src/vulkan/private.h @@ -714,6 +714,21 @@ struct anv_cmd_buffer { struct anv_cmd_state state; }; +struct anv_state +anv_cmd_buffer_alloc_surface_state(struct anv_cmd_buffer *cmd_buffer, + uint32_t size, uint32_t alignment); + +VkResult anv_cmd_buffer_new_surface_state_bo(struct anv_cmd_buffer *cmd_buffer); + +void anv_cmd_buffer_emit_state_base_address(struct anv_cmd_buffer *cmd_buffer); + +void anv_cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer, + struct anv_subpass *subpass); + +void anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer, + struct anv_render_pass *pass, + const VkClearValue *clear_values); + void anv_cmd_buffer_dump(struct anv_cmd_buffer *cmd_buffer); void anv_aub_writer_destroy(struct anv_aub_writer *writer); @@ -982,21 +997,6 @@ struct anv_render_pass { void anv_device_init_meta(struct anv_device *device); void anv_device_finish_meta(struct anv_device *device); -struct anv_state -anv_cmd_buffer_alloc_surface_state(struct anv_cmd_buffer *cmd_buffer, - uint32_t size, uint32_t alignment); - -VkResult anv_cmd_buffer_new_surface_state_bo(struct anv_cmd_buffer *cmd_buffer); - -void anv_cmd_buffer_emit_state_base_address(struct anv_cmd_buffer *cmd_buffer); - -void anv_cmd_buffer_begin_subpass(struct anv_cmd_buffer *cmd_buffer, - struct anv_subpass *subpass); - -void anv_cmd_buffer_clear_attachments(struct anv_cmd_buffer *cmd_buffer, - struct anv_render_pass *pass, - const VkClearValue *clear_values); - void *anv_lookup_entrypoint(const char *name); #define ANV_DEFINE_CASTS(__anv_type, __VkType) \