radv: bail out when no image transitions will be performed
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 29 Jan 2019 21:18:46 +0000 (22:18 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Feb 2019 12:17:40 +0000 (13:17 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 7f7f052986e8b39e24196c6a32923abd6b3228e9..5ecaf829cb0073498ce0350c972b7a028c977206 100644 (file)
@@ -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);