radv: fix flushing non-coherent images in EndCommandBuffer()
The condition was inverted.
This doesn't fix anything known.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21549>
(cherry picked from commit 7c62f6fa01d7c0d9d7eabec1c545950af20d0c92)
diff --git a/.pick_status.json b/.pick_status.json
index d304994..b6def48 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -4270,7 +4270,7 @@
"description": "radv: fix flushing non-coherent images in EndCommandBuffer()",
"nominated": true,
"nomination_type": 0,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": null
},
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 6e47c46..ce0dd90 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -5283,7 +5283,7 @@
/* Flush noncoherent images on GFX9+ so we can assume they're clean on the start of a
* command buffer.
*/
- if (cmd_buffer->state.rb_noncoherent_dirty && can_skip_buffer_l2_flushes(cmd_buffer->device))
+ if (cmd_buffer->state.rb_noncoherent_dirty && !can_skip_buffer_l2_flushes(cmd_buffer->device))
cmd_buffer->state.flush_bits |= radv_src_access_flush(
cmd_buffer,
VK_ACCESS_2_COLOR_ATTACHMENT_WRITE_BIT |