diff options
author | Chad Versace <[email protected]> | 2015-11-03 14:08:44 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-11-04 15:15:19 -0800 |
commit | c56727037a968c3ff433468827eff25a40f26a71 (patch) | |
tree | f59d71294a9d448666621347608267ec1857c680 /src/vulkan/anv_meta.c | |
parent | b00e3f221b3f6dd0e87697c53331fd033b6e8676 (diff) |
anv: Move struct anv_vue_header to anv_private.h
Move it from anv_meta.c to the common header anv_private.h. This allows
us to split the meta blit and meta clear code into separate files.
Diffstat (limited to 'src/vulkan/anv_meta.c')
-rw-r--r-- | src/vulkan/anv_meta.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index cc605197f9b..f6b37c3f8b2 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -353,15 +353,8 @@ anv_cmd_buffer_restore(struct anv_cmd_buffer *cmd_buffer, cmd_buffer->state.dirty |= state->dynamic_flags; } -struct vue_header { - uint32_t Reserved; - uint32_t RTAIndex; - uint32_t ViewportIndex; - float PointWidth; -}; - struct clear_instance_data { - struct vue_header vue_header; + struct anv_vue_header vue_header; VkClearColorValue color; }; @@ -807,12 +800,12 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, float tex_coord[3]; } *vb_data; - unsigned vb_size = sizeof(struct vue_header) + 3 * sizeof(*vb_data); + unsigned vb_size = sizeof(struct anv_vue_header) + 3 * sizeof(*vb_data); struct anv_state vb_state = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, vb_size, 16); - memset(vb_state.map, 0, sizeof(struct vue_header)); - vb_data = vb_state.map + sizeof(struct vue_header); + memset(vb_state.map, 0, sizeof(struct anv_vue_header)); + vb_data = vb_state.map + sizeof(struct anv_vue_header); vb_data[0] = (struct blit_vb_data) { .pos = { @@ -864,7 +857,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, }, (VkDeviceSize[]) { 0, - sizeof(struct vue_header), + sizeof(struct anv_vue_header), }); VkDescriptorSet set; |