aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_pass.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-12-06 14:14:25 +0100
committerMarge Bot <[email protected]>2020-01-03 12:31:53 +0000
commit7bbf497b68430934ab34316823e0f59ee34f9a4f (patch)
tree5aff704a445581bfcf202528c4df395e58676e69 /src/amd/vulkan/radv_pass.c
parent8d50ab53953871b408f5671031f32a56a63dc784 (diff)
radv: record number of color/depth samples for each subpass
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3018>
Diffstat (limited to 'src/amd/vulkan/radv_pass.c')
-rw-r--r--src/amd/vulkan/radv_pass.c2
1 files changed, 2 insertions, 0 deletions
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;