From: Jason Ekstrand Date: Fri, 4 Sep 2020 21:50:09 +0000 (-0500) Subject: spirv: Improve the "Entry point not found" error message X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=c0cfc9f14567d56a5d64851cf1b5dcfc910a7fef;ds=sidebyside spirv: Improve the "Entry point not found" error message Reviewed-by: Iago Toral Quiroga Part-of: --- diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 8a072edb5ea..27ca4fb5d11 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -5646,7 +5646,8 @@ spirv_to_nir(const uint32_t *words, size_t word_count, vtn_handle_preamble_instruction); if (b->entry_point == NULL) { - vtn_fail("Entry point not found"); + vtn_fail("Entry point not found for %s shader \"%s\"", + _mesa_shader_stage_to_string(stage), entry_point_name); ralloc_free(b); return NULL; }