anv: set error in all failure paths

Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Fixes: 5b196f39bd "anv/pipeline: Compile to NIR in compile_graphics"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
Eric Engestrom
2018-08-08 15:42:49 +01:00
parent aac80f7597
commit fcf259ef97

View File

@@ -979,9 +979,11 @@ 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 */
struct anv_pipeline_stage *next_stage = NULL;