radv: fix the error code when the driver fails to create a PS epilog

It would have been returned VK_SUCCESS.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21834>
This commit is contained in:
Samuel Pitoiset
2023-03-10 14:02:01 +01:00
committed by Marge Bot
parent 481f78ab93
commit 86ab8c33ed

View File

@@ -3620,7 +3620,7 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline,
keep_statistic_info, active_nir_stages, binaries, &gs_copy_binary);
if (!radv_pipeline_create_ps_epilog(pipeline, pipeline_key, lib_flags, noop_fs))
return result;
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
if (keep_executable_info) {
for (int i = 0; i < MESA_VULKAN_SHADER_STAGES; ++i) {