anv: Rename a fail label in CreateDevice

The rest of them are labeled with the thing they need to destroy first,
not the thing that failed.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184>
This commit is contained in:
Jason Ekstrand 2021-10-04 14:13:33 -05:00 committed by Marge Bot
parent 93d0c66b27
commit c551f6c4df
1 changed files with 2 additions and 2 deletions

View File

@ -3441,7 +3441,7 @@ VkResult anv_CreateDevice(
result = anv_device_init_rt_shaders(device);
if (result != VK_SUCCESS)
goto fail_rt_trampoline;
goto fail_default_pipeline_cache;
anv_device_init_blorp(device);
@ -3455,7 +3455,7 @@ VkResult anv_CreateDevice(
return VK_SUCCESS;
fail_rt_trampoline:
fail_default_pipeline_cache:
anv_pipeline_cache_finish(&device->default_pipeline_cache);
fail_trivial_batch_bo_and_scratch_pool:
anv_scratch_pool_finish(device, &device->scratch_pool);