From e4c8491bdf8a1238d475491533d937568019e633 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 9 Dec 2019 13:56:24 +0100 Subject: radv: implement VK_KHR_separate_depth_stencil_layouts Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/amd/vulkan/radv_private.h') diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 1e15de10924..1be61679d8a 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1195,6 +1195,7 @@ struct radv_attachment_state { uint32_t cleared_views; VkClearValue clear_value; VkImageLayout current_layout; + VkImageLayout current_stencil_layout; bool current_in_render_loop; struct radv_sample_locations_state sample_location; @@ -2128,6 +2129,7 @@ void radv_subpass_barrier(struct radv_cmd_buffer *cmd_buffer, struct radv_subpass_attachment { uint32_t attachment; VkImageLayout layout; + VkImageLayout stencil_layout; bool in_render_loop; }; @@ -2167,6 +2169,8 @@ struct radv_render_pass_attachment { VkAttachmentLoadOp stencil_load_op; VkImageLayout initial_layout; VkImageLayout final_layout; + VkImageLayout stencil_initial_layout; + VkImageLayout stencil_final_layout; /* The subpass id in which the attachment will be used first/last. */ uint32_t first_subpass_idx; -- cgit v1.2.3