From: Eric Engestrom Date: Wed, 8 Aug 2018 14:42:49 +0000 (+0100) Subject: anv: set error in all failure paths X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcf259ef97fef9d52e7f82ef90fb2383438743b3;p=mesa.git anv: set error in all failure paths Cc: Jason Ekstrand Fixes: 5b196f39bddc689742d3 "anv/pipeline: Compile to NIR in compile_graphics" Signed-off-by: Eric Engestrom Reviewed-by: Tapani Pälli Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 23af0f1c924..4074c8fd364 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -979,8 +979,10 @@ anv_pipeline_compile_graphics(struct anv_pipeline *pipeline, &stages[s], &stages[s].prog_data.base, &stages[s].bind_map); - if (stages[s].nir == NULL) + if (stages[s].nir == NULL) { + result = vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); goto fail; + } } /* Walk backwards to link */