summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_private.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-10-05 15:49:10 -0700
committerChad Versace <[email protected]>2015-10-05 17:46:04 -0700
commit74193a880f475da40e8c03ff7e772f3a288317a8 (patch)
treea6d544246da439adf3fb9cf320e0af6690c7553c /src/vulkan/anv_private.h
parentffd051830d837705f4da6d16e59953b02066c91e (diff)
vk: Use consistent names for anv_*_view variables
Rename all anv_*_view variables to follow this convention: - sview -> anv_surface_view - bview -> anv_buffer_view - iview -> anv_image_view - aview -> anv_attachment_view - cview -> anv_color_attachment_view - ds_view -> anv_depth_stencil_attachment_view This clarifies existing code. And it will reduce noise in the upcoming commits that merge VkAttachmentView into VkImageView.
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r--src/vulkan/anv_private.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h
index 6ce5db209cb..09890730fd6 100644
--- a/src/vulkan/anv_private.h
+++ b/src/vulkan/anv_private.h
@@ -1242,11 +1242,11 @@ struct anv_surface_view {
};
struct anv_buffer_view {
- struct anv_surface_view view;
+ struct anv_surface_view surface_view;
};
struct anv_image_view {
- struct anv_surface_view view;
+ struct anv_surface_view surface_view;
VkExtent3D extent;
};
@@ -1261,12 +1261,12 @@ struct anv_attachment_view {
};
struct anv_color_attachment_view {
- struct anv_attachment_view base;
- struct anv_surface_view view;
+ struct anv_attachment_view attachment_view;
+ struct anv_surface_view surface_view;
};
struct anv_depth_stencil_view {
- struct anv_attachment_view base;
+ struct anv_attachment_view attachment_view;
const struct anv_image *image; /**< VkAttachmentViewCreateInfo::image */
const struct anv_format *format; /**< VkAttachmentViewCreateInfo::format */
};
@@ -1306,24 +1306,24 @@ gen8_image_view_init(struct anv_image_view *iview,
const VkImageViewCreateInfo* pCreateInfo,
struct anv_cmd_buffer *cmd_buffer);
-void anv_color_attachment_view_init(struct anv_color_attachment_view *view,
+void anv_color_attachment_view_init(struct anv_color_attachment_view *cview,
struct anv_device *device,
const VkAttachmentViewCreateInfo* pCreateInfo,
struct anv_cmd_buffer *cmd_buffer);
-void gen7_color_attachment_view_init(struct anv_color_attachment_view *aview,
+void gen7_color_attachment_view_init(struct anv_color_attachment_view *cview,
struct anv_device *device,
const VkAttachmentViewCreateInfo* pCreateInfo,
struct anv_cmd_buffer *cmd_buffer);
-void gen8_color_attachment_view_init(struct anv_color_attachment_view *aview,
+void gen8_color_attachment_view_init(struct anv_color_attachment_view *cview,
struct anv_device *device,
const VkAttachmentViewCreateInfo* pCreateInfo,
struct anv_cmd_buffer *cmd_buffer);
VkResult anv_buffer_view_create(struct anv_device *device,
const VkBufferViewCreateInfo *pCreateInfo,
- struct anv_buffer_view **view_out);
+ struct anv_buffer_view **bview_out);
void anv_fill_buffer_surface_state(struct anv_device *device, void *state,
const struct anv_format *format,
@@ -1335,7 +1335,7 @@ void gen8_fill_buffer_surface_state(void *state, const struct anv_format *format
uint32_t offset, uint32_t range);
void anv_surface_view_fini(struct anv_device *device,
- struct anv_surface_view *view);
+ struct anv_surface_view *sview);
struct anv_sampler {
uint32_t state[4];