From: Samuel Pitoiset Date: Tue, 29 Jan 2019 21:18:46 +0000 (+0100) Subject: radv: bail out when no image transitions will be performed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f932bbedeab1c4fdc30aabdaafb7fd3fecc856f;p=mesa.git radv: bail out when no image transitions will be performed Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- 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);