diff options
author | Bas Nieuwenhuizen <[email protected]> | 2020-05-17 02:36:44 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-19 18:40:04 +0000 |
commit | e11f077bb24e8aa25572a4b8f5e5a05df48c9f56 (patch) | |
tree | 6523adc77f4a122d436549b383b571077c986389 | |
parent | dde998685e7b254b1a80ceafe64776d6d1f28ea9 (diff) |
radv: Support VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT_EXT.
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5072>
-rw-r--r-- | src/amd/vulkan/radv_pipeline.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 4b3a1af89cd..738a9b1372d 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -5312,9 +5312,15 @@ VkResult radv_CreateGraphicsPipelines( if (r != VK_SUCCESS) { result = r; pPipelines[i] = VK_NULL_HANDLE; + + if (pCreateInfos[i].flags & VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT_EXT) + break; } } + for (; i < count; ++i) + pPipelines[i] = VK_NULL_HANDLE; + return result; } @@ -5487,9 +5493,15 @@ VkResult radv_CreateComputePipelines( if (r != VK_SUCCESS) { result = r; pPipelines[i] = VK_NULL_HANDLE; + + if (pCreateInfos[i].flags & VK_PIPELINE_CREATE_EARLY_RETURN_ON_FAILURE_BIT_EXT) + break; } } + for (; i < count; ++i) + pPipelines[i] = VK_NULL_HANDLE; + return result; } |