summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta.h
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2016-01-25 09:14:03 -0800
committerChad Versace <[email protected]>2016-01-27 16:52:30 -0800
commit8cc1e59d61a71cb6444fc849a9f2d3dd4803d2ae (patch)
tree42e38f3ec242a7b93c5e68f5b8374656ae421490 /src/vulkan/anv_meta.h
parent8cc6f058ce30d77e45bc26d4769a7adde46deb11 (diff)
anv/meta: Add func anv_meta_get_iview_layer()
This function is just meta_blit_get_dest_view_base_array_slice(), but moved to the shared header anv_meta.h. Will be needed by anv_meta_resolve.c.
Diffstat (limited to 'src/vulkan/anv_meta.h')
-rw-r--r--src/vulkan/anv_meta.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vulkan/anv_meta.h b/src/vulkan/anv_meta.h
index 31d344a4cbe..47c6d335438 100644
--- a/src/vulkan/anv_meta.h
+++ b/src/vulkan/anv_meta.h
@@ -59,6 +59,11 @@ anv_meta_restore(const struct anv_meta_saved_state *state,
VkImageViewType
anv_meta_get_view_type(const struct anv_image *image);
+uint32_t
+anv_meta_get_iview_layer(const struct anv_image *dest_image,
+ const VkImageSubresourceLayers *dest_subresource,
+ const VkOffset3D *dest_offset);
+
#ifdef __cplusplus
}
#endif