spirv: Improve the "Entry point not found" error message

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6607>
This commit is contained in:
Jason Ekstrand
2020-09-04 16:50:09 -05:00
committed by Marge Bot
parent 2c94a9788e
commit a5e427fe64

View File

@@ -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;
}