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 7c62f6fa01)
This commit is contained in:
Samuel Pitoiset 2023-02-27 10:49:16 +01:00 committed by Dylan Baker
parent fe2f5e6b76
commit 9e777a4b5a
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,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
},

View file

@ -6039,7 +6039,7 @@ radv_EndCommandBuffer(VkCommandBuffer commandBuffer)
/* 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 |