radv: Skip transitions coming from external queue.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 12 Jun 2019 22:52:18 +0000 (00:52 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 13 Jun 2019 08:15:45 +0000 (08:15 +0000)
Transitions to external queue should do the transition & make sure
it works on all queues.

Fixes: 8ebc7dcb59a "radv: Allow fast clears with concurrent queue mask for some layouts."
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c

index d69bec60bb84e556c2cd6a973af9fc68abc2861d..2fd5f8b7a0788f155bc5bdda1e485a63c8ddcd4d 100644 (file)
@@ -5004,6 +5004,9 @@ static void radv_handle_image_transition(struct radv_cmd_buffer *cmd_buffer,
                assert(src_family == cmd_buffer->queue_family_index ||
                       dst_family == cmd_buffer->queue_family_index);
 
+               if (src_family == VK_QUEUE_FAMILY_EXTERNAL)
+                       return;
+
                if (cmd_buffer->queue_family_index == RADV_QUEUE_TRANSFER)
                        return;