From c0cfc9f14567d56a5d64851cf1b5dcfc910a7fef Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 4 Sep 2020 16:50:09 -0500 Subject: [PATCH] spirv: Improve the "Entry point not found" error message Reviewed-by: Iago Toral Quiroga Part-of: --- src/compiler/spirv/spirv_to_nir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2