From dcff5ab9f164afbc29c051b18990a377bb46e4bc Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Fri, 31 Mar 2017 13:52:53 -0700 Subject: anv/cmd_buffer: Restrict fast clears in the GENERAL layout v2: Remove ::first_subpass_layout assertion (Jason Ekstrand). v3: Allow some fast clears in the GENERAL layout. v4: Remove extra '||' and adjust line break (Jason Ekstrand). Signed-off-by: Nanley Chery Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/intel/vulkan/anv_private.h') diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 3635bc8a1a5..70eb3d87604 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -1490,6 +1490,7 @@ struct anv_attachment_state { bool fast_clear; VkClearValue clear_value; bool clear_color_is_zero_one; + bool clear_color_is_zero; }; /** State required while building cmd buffer */ @@ -2308,6 +2309,7 @@ struct anv_render_pass_attachment { VkAttachmentLoadOp stencil_load_op; VkImageLayout initial_layout; VkImageLayout final_layout; + VkImageLayout first_subpass_layout; /* An array, indexed by subpass id, of how the attachment will be used. */ enum anv_subpass_usage * subpass_usage; -- cgit v1.2.3