From 7bbf497b68430934ab34316823e0f59ee34f9a4f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 6 Dec 2019 14:14:25 +0100 Subject: radv: record number of color/depth samples for each subpass Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_pass.c | 2 ++ src/amd/vulkan/radv_private.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index c47720213a8..ae6a3c17184 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -134,6 +134,8 @@ radv_render_pass_compile(struct radv_render_pass *pass) subpass->max_sample_count = MAX2(color_sample_count, depth_sample_count); + subpass->color_sample_count = color_sample_count; + subpass->depth_sample_count = depth_sample_count; /* We have to handle resolve attachments specially */ subpass->has_color_resolve = false; diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 01a2533b33e..599c24b1e0f 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -2156,6 +2156,9 @@ struct radv_subpass { struct radv_subpass_barrier start_barrier; uint32_t view_mask; + + VkSampleCountFlagBits color_sample_count; + VkSampleCountFlagBits depth_sample_count; VkSampleCountFlagBits max_sample_count; }; -- cgit v1.2.3