Revert "radv: execute external subpass barriers after ending subpasses"
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Mar 2019 13:51:02 +0000 (14:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 8 Mar 2019 13:59:26 +0000 (14:59 +0100)
This changes is actually wrong because we have to sync
before doing image layout transitions.

This fixes rendering issues in Batman, Path of Exile and
probably more titles.

This reverts commit 76c17cfd8da017ebd19be33ba6cef888957a6758.

Fixes: 76c17cfd8da ("radv: execute external subpass barriers after ending subpasses")
Cc: 19.0 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 5b66930d137b997e4903b429b79d789f9e46d5d6..d8aceb8b082404e081959730c7f09b78cec67cac 100644 (file)
@@ -4395,10 +4395,10 @@ void radv_CmdEndRenderPass(
 {
        RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer);
 
-       radv_cmd_buffer_end_subpass(cmd_buffer);
-
        radv_subpass_barrier(cmd_buffer, &cmd_buffer->state.pass->end_barrier);
 
+       radv_cmd_buffer_end_subpass(cmd_buffer);
+
        vk_free(&cmd_buffer->pool->alloc, cmd_buffer->state.attachments);
 
        cmd_buffer->state.pass = NULL;