mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
c08d2c40ed
commit
d2960a8430
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue