radv: remove one useless goto in radv_queue_submit_deferred()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 12 Jul 2020 18:44:22 +0000 (20:44 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 Jul 2020 15:25:11 +0000 (17:25 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5876>

src/amd/vulkan/radv_device.c

index 85ff3ca06a727f0b0619a653f1468ed952c26b8e..3fe96cd8da17c731b86c3e50986fcfb49f6ea983 100644 (file)
@@ -4273,8 +4273,6 @@ radv_queue_submit_deferred(struct radv_deferred_queue_submission *submission,
                        radv_loge("failed to submit CS\n");
                        abort();
                }
-
-               goto success;
        } else {
                struct radeon_cmdbuf **cs_array = malloc(sizeof(struct radeon_cmdbuf *) *
                                                         (submission->cmd_buffer_count));
@@ -4328,7 +4326,6 @@ radv_queue_submit_deferred(struct radv_deferred_queue_submission *submission,
                free(cs_array);
        }
 
-success:
        radv_free_temp_syncobjs(queue->device,
                                submission->temporary_semaphore_part_count,
                                submission->temporary_semaphore_parts);