radv: consider VK_PIPELINE_STAGE_2_NONE like BOTTOM_OF_PIPE

VK_PIPELINE_STAGE_2_NONE from sync2 is similar to BOTTOM_OF_PIPE.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32115>
This commit is contained in:
Samuel Pitoiset 2024-11-14 14:16:15 +01:00 committed by Marge Bot
parent c08d2c40ed
commit d2960a8430

View file

@ -12871,10 +12871,11 @@ radv_barrier(struct radv_cmd_buffer *cmd_buffer, uint32_t dep_count, const VkDep
has_image_transitions |= dep_info->imageMemoryBarrierCount > 0;
}
/* Only optimize BOTTOM_OF_PIPE as dst when there is no image layout transitions because it might
/* Only optimize BOTTOM_OF_PIPE/NONE as dst when there is no image layout transitions because it might
* need to synchronize.
*/
if (has_image_transitions || dst_stage_mask != VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT)
if (has_image_transitions ||
(dst_stage_mask != VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT && dst_stage_mask != VK_PIPELINE_STAGE_2_NONE))
radv_stage_flush(cmd_buffer, src_stage_mask);
cmd_buffer->state.flush_bits |= src_flush_bits;