diff options
author | Chad Versace <[email protected]> | 2015-08-28 07:52:19 -0700 |
---|---|---|
committer | Chad Versace <[email protected]> | 2015-08-28 07:52:19 -0700 |
commit | c6f19b42486dd8f17c19779e38f7ee84f4f14a52 (patch) | |
tree | c411224fdef9ffbc2a12badafc0162b82a30a2b0 /src/vulkan/anv_private.h | |
parent | 35b0262a2d80b8b21dfccaf9a099278d3f3f6a6c (diff) |
vk: Don't duplicate anv_depth_stencil_view's surface data
In anv_depth_stencil_view, replace the members
bo
depth_offset
depth_stride
depth_format
depth_qpitch
stencil_offset
stencil_stride
stencil_qpitch
with the single member
const struct anv_image *image
The removed members duplicated data in anv_image::depth_surface and
anv_image::stencil_surface.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 594b4fedc6c..5cbc67b7c2c 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -1119,18 +1119,8 @@ struct anv_color_attachment_view { struct anv_depth_stencil_view { struct anv_attachment_view base; + const struct anv_image *image; /**< VkAttachmentViewCreateInfo::image */ const struct anv_format *format; /**< VkAttachmentViewCreateInfo::format */ - - struct anv_bo *bo; - - uint32_t depth_offset; /**< Offset into bo. */ - uint32_t depth_stride; /**< 3DSTATE_DEPTH_BUFFER.SurfacePitch */ - uint32_t depth_format; /**< 3DSTATE_DEPTH_BUFFER.SurfaceFormat */ - uint16_t depth_qpitch; /**< 3DSTATE_DEPTH_BUFFER.SurfaceQPitch */ - - uint32_t stencil_offset; /**< Offset into bo. */ - uint32_t stencil_stride; /**< 3DSTATE_STENCIL_BUFFER.SurfacePitch */ - uint16_t stencil_qpitch; /**< 3DSTATE_STENCIL_BUFFER.SurfaceQPitch */ }; struct anv_image_create_info { |