diff options
-rw-r--r-- | src/amd/vulkan/radv_pass.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_pass.c b/src/amd/vulkan/radv_pass.c index 4d9fb0bf7df..0a37392322f 100644 --- a/src/amd/vulkan/radv_pass.c +++ b/src/amd/vulkan/radv_pass.c @@ -43,13 +43,13 @@ radv_render_pass_add_subpass_dep(struct radv_render_pass *pass, return; if (dst == VK_SUBPASS_EXTERNAL) { - pass->end_barrier.src_stage_mask = dep->srcStageMask; - pass->end_barrier.src_access_mask = dep->srcAccessMask; - pass->end_barrier.dst_access_mask = dep->dstAccessMask; + pass->end_barrier.src_stage_mask |= dep->srcStageMask; + pass->end_barrier.src_access_mask |= dep->srcAccessMask; + pass->end_barrier.dst_access_mask |= dep->dstAccessMask; } else { - pass->subpasses[dst].start_barrier.src_stage_mask = dep->srcStageMask; - pass->subpasses[dst].start_barrier.src_access_mask = dep->srcAccessMask; - pass->subpasses[dst].start_barrier.dst_access_mask = dep->dstAccessMask; + pass->subpasses[dst].start_barrier.src_stage_mask |= dep->srcStageMask; + pass->subpasses[dst].start_barrier.src_access_mask |= dep->srcAccessMask; + pass->subpasses[dst].start_barrier.dst_access_mask |= dep->dstAccessMask; } } |