mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
anv: Handle internal shader compilation failure
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30380>
This commit is contained in:
parent
196b3d7b5b
commit
eb5a3617e2
1 changed files with 6 additions and 2 deletions
|
|
@ -223,6 +223,10 @@ compile_shader(struct anv_device *device,
|
|||
}
|
||||
|
||||
assert(prog_data.base.total_scratch == 0);
|
||||
assert(program != NULL);
|
||||
struct anv_shader_bin *kernel = NULL;
|
||||
if (program == NULL)
|
||||
goto exit;
|
||||
|
||||
struct anv_pipeline_bind_map empty_bind_map = {};
|
||||
struct anv_push_descriptor_info empty_push_desc_info = {};
|
||||
|
|
@ -238,9 +242,9 @@ compile_shader(struct anv_device *device,
|
|||
.push_desc_info = &empty_push_desc_info,
|
||||
};
|
||||
|
||||
struct anv_shader_bin *kernel =
|
||||
anv_device_upload_kernel(device, device->internal_cache, &upload_params);
|
||||
kernel = anv_device_upload_kernel(device, device->internal_cache, &upload_params);
|
||||
|
||||
exit:
|
||||
ralloc_free(temp_ctx);
|
||||
ralloc_free(nir);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue