diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-29 22:19:01 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-02-04 13:19:14 +0100 |
commit | 76c17cfd8da017ebd19be33ba6cef888957a6758 (patch) | |
tree | fdd4fc95efd48c260c771cc4172b5063e96537c9 /src/amd | |
parent | b482c030f5ca3ac6631034a4ca7551f8f14dd2d5 (diff) |
radv: execute external subpass barriers after ending subpasses
Outgoing dependencies (ie. external) should happen after the subpass.
This doesn't change anything for subpass resolves as we already
make sure that attachments are shader readable.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index e7ae7b37efb..93982c1232e 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -4356,10 +4356,10 @@ void radv_CmdEndRenderPass( { RADV_FROM_HANDLE(radv_cmd_buffer, cmd_buffer, commandBuffer); - radv_subpass_barrier(cmd_buffer, &cmd_buffer->state.pass->end_barrier); - radv_cmd_buffer_end_subpass(cmd_buffer); + radv_subpass_barrier(cmd_buffer, &cmd_buffer->state.pass->end_barrier); + vk_free(&cmd_buffer->pool->alloc, cmd_buffer->state.attachments); cmd_buffer->state.pass = NULL; |