summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-07-18 00:53:52 +0200
committerBas Nieuwenhuizen <[email protected]>2019-04-25 19:56:20 +0000
commit66507cc6563e0f710e5b4553a1048be65eef9559 (patch)
treef5dc4ef138ece7a7091ceb31902fc28e70101cdd /src/amd/vulkan/radv_private.h
parent42d159f2766421b7a2858aa8de7762e8dfc9257f (diff)
radv: Add single plane image views & meta operations.
Copies & clear of multiplane images is not allowed so we do not have to handle that case. Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index f8f00e63af5..852dfd259c6 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -1677,6 +1677,7 @@ struct radv_image_view {
VkImageViewType type;
VkImageAspectFlags aspect_mask;
VkFormat vk_format;
+ unsigned plane_id;
uint32_t base_layer;
uint32_t layer_count;
uint32_t base_mip;
@@ -1713,6 +1714,8 @@ void radv_image_view_init(struct radv_image_view *view,
struct radv_device *device,
const VkImageViewCreateInfo* pCreateInfo);
+VkFormat radv_get_aspect_format(struct radv_image *image, VkImageAspectFlags mask);
+
struct radv_buffer_view {
struct radeon_winsys_bo *bo;
VkFormat vk_format;