diff options
author | Chad Versace <[email protected]> | 2015-10-06 11:42:43 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-10-06 12:13:03 -0700 |
commit | d4446a7e58e4c57da68432ed108320936a910e5d (patch) | |
tree | ce1af7b167b031c3a5f770145b815ef7cc95db23 /src/vulkan/gen8_state.c | |
parent | 6b5ce5daf5145a1e63ca28c537689583056ac28d (diff) |
vk: Merge anv_attachment_view into anv_image_view
This prepares for merging VkAttachmentView into VkImageView.
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r-- | src/vulkan/gen8_state.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index 4990becf60a..d2a403b2f56 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -281,13 +281,12 @@ gen8_image_view_init(struct anv_image_view *iview, } void -gen8_color_attachment_view_init(struct anv_attachment_view *aview, +gen8_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); const struct anv_format *format_info = @@ -296,8 +295,6 @@ gen8_color_attachment_view_init(struct anv_attachment_view *aview, uint32_t depth = 1; /* RENDER_SURFACE_STATE::Depth */ uint32_t rt_view_extent = 1; /* RENDER_SURFACE_STATE::RenderTargetViewExtent */ - 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); |