[Mesa-dev] [PATCH 15/19] radv: accumulate all ingoing external dependencies to the first subpass

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Jan 29 21:19:00 UTC 2019


In case two or more subpasses declare ingoing external dependencies.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/vulkan/radv_pass.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c
index 0a37392322f..08ea2454750 100644
--- a/src/amd/vulkan/radv_pass.c
+++ b/src/amd/vulkan/radv_pass.c
@@ -42,6 +42,10 @@ radv_render_pass_add_subpass_dep(struct radv_render_pass *pass,
 	if (src == dst)
 		return;
 
+	/* Accumulate all ingoing external dependencies to the first subpass. */
+	if (src == VK_SUBPASS_EXTERNAL)
+		dst = 0;
+
 	if (dst == VK_SUBPASS_EXTERNAL) {
 		pass->end_barrier.src_stage_mask |= dep->srcStageMask;
 		pass->end_barrier.src_access_mask |= dep->srcAccessMask;
-- 
2.20.1



More information about the mesa-dev mailing list