diff options
author | Eric Engestrom <[email protected]> | 2018-08-08 15:42:49 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2018-08-09 11:20:27 +0100 |
commit | fcf259ef97fef9d52e7f82ef90fb2383438743b3 (patch) | |
tree | af6a18838a60835f91f0895ee2b92e8f0b4696aa /src/intel | |
parent | aac80f75973b61a8a31f873a9de6bcf294ea493c (diff) |
anv: set error in all failure paths
Cc: Jason Ekstrand <[email protected]>
Fixes: 5b196f39bddc689742d3 "anv/pipeline: Compile to NIR in compile_graphics"
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |