diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-29 22:18:46 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-02-04 13:17:40 +0100 |
commit | 0f932bbedeab1c4fdc30aabdaafb7fd3fecc856f (patch) | |
tree | 35be9abafd5fd4a963649e5531d420b00ec7e17d /src | |
parent | 1e85cfb91a08565f28f51cc19573324722765823 (diff) |
radv: bail out when no image transitions will be performed
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 7f7f052986e..5ecaf829cb0 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -4592,6 +4592,9 @@ static void radv_handle_image_transition(struct radv_cmd_buffer *cmd_buffer, return; } + if (src_layout == dst_layout) + return; + unsigned src_queue_mask = radv_image_queue_family_mask(image, src_family, cmd_buffer->queue_family_index); |