diff options
author | Chad Versace <[email protected]> | 2015-10-05 17:27:38 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-05 17:46:04 -0700 |
commit | 935706234855e19e17402ee3b3cc19bc032b4932 (patch) | |
tree | 72f63a6df805576fdf5ef0fbc32a725fcbc3a266 /src/vulkan/anv_cmd_buffer.c | |
parent | ae30535602d8b2f10a31feb133331c0c985b8b41 (diff) |
vk: Merge anv_*_attachment_view into anv_attachment_view
Remove anv_color_attachment_view and anv_depth_stencil_view, merging
them into anv_attachment_view. This prepares for merging
VkAttachmentView into VkImageView.
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r-- | src/vulkan/anv_cmd_buffer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 008eeed40d6..cab916c1383 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -434,14 +434,10 @@ anv_cmd_buffer_emit_binding_table(struct anv_cmd_buffer *cmd_buffer, for (uint32_t a = 0; a < attachments; a++) { const struct anv_attachment_view *aview = fb->attachments[subpass->color_attachments[a]]; + const struct anv_image_view *iview = &aview->image_view; assert(aview->attachment_type == ANV_ATTACHMENT_VIEW_TYPE_COLOR); - const struct anv_color_attachment_view *cview = - (const struct anv_color_attachment_view *) aview; - - const struct anv_image_view *iview = &cview->image_view; - bt_map[a] = iview->surface_state.offset + state_offset; add_surface_state_reloc(cmd_buffer, iview->surface_state, iview->bo, iview->offset); @@ -821,7 +817,7 @@ VkResult anv_ResetCommandPool( /** * Return NULL if the current subpass has no depthstencil attachment. */ -const struct anv_depth_stencil_view * +const struct anv_attachment_view * anv_cmd_buffer_get_depth_stencil_view(const struct anv_cmd_buffer *cmd_buffer) { const struct anv_subpass *subpass = cmd_buffer->state.subpass; @@ -835,5 +831,5 @@ anv_cmd_buffer_get_depth_stencil_view(const struct anv_cmd_buffer *cmd_buffer) assert(aview->attachment_type == ANV_ATTACHMENT_VIEW_TYPE_DEPTH_STENCIL); - return (const struct anv_depth_stencil_view *) aview; + return aview; } |