summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-06 11:42:43 -0700
committerChad Versace <[email protected]>2015-10-06 12:13:03 -0700
commitd4446a7e58e4c57da68432ed108320936a910e5d (patch)
treece1af7b167b031c3a5f770145b815ef7cc95db23 /src/vulkan/gen7_state.c
parent6b5ce5daf5145a1e63ca28c537689583056ac28d (diff)
vk: Merge anv_attachment_view into anv_image_view
This prepares for merging VkAttachmentView into VkImageView.
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c
index ed9d9f8c568..1959b8b5a49 100644
--- a/src/vulkan/gen7_state.c
+++ b/src/vulkan/gen7_state.c
@@ -360,18 +360,15 @@ gen7_image_view_init(struct anv_image_view *iview,
}
void
-gen7_color_attachment_view_init(struct anv_attachment_view *aview,
+gen7_color_attachment_view_init(struct anv_image_view *iview,
struct anv_device *device,
const VkAttachmentViewCreateInfo* pCreateInfo,
struct anv_cmd_buffer *cmd_buffer)
{
ANV_FROM_HANDLE(anv_image, image, pCreateInfo->image);
- struct anv_image_view *iview = &aview->image_view;
struct anv_surface *surface =
anv_image_get_surface_for_color_attachment(image);
- aview->attachment_type = ANV_ATTACHMENT_VIEW_TYPE_COLOR;
-
anv_assert(pCreateInfo->arraySize > 0);
anv_assert(pCreateInfo->mipLevel < image->levels);
anv_assert(pCreateInfo->baseArraySlice + pCreateInfo->arraySize <= image->array_size);