mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
aac80f7597
commit
fcf259ef97
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue