radv: don't flush DB before subpass FS resolves
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Jul 2018 13:07:34 +0000 (15:07 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 20 Jul 2018 15:30:13 +0000 (17:30 +0200)
That shouldn't be needed because the DB state is invalid.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_resolve_fs.c

index 7c6ddf513c56d251042c7d81c0c54dde45e68bf7..76f00bfb5e39e04f768ff191ed9ec178625d7daa 100644 (file)
@@ -585,8 +585,7 @@ radv_cmd_buffer_resolve_subpass_fs(struct radv_cmd_buffer *cmd_buffer)
        /* Resolves happen before the end-of-subpass barriers get executed,
         * so we have to make the attachment shader-readable */
        barrier.src_stage_mask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
-       barrier.src_access_mask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT |
-                                 VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
+       barrier.src_access_mask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
        barrier.dst_access_mask = VK_ACCESS_INPUT_ATTACHMENT_READ_BIT;
        radv_subpass_barrier(cmd_buffer, &barrier);