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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user