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:

committed by
Marge Bot

parent
2c94a9788e
commit
a5e427fe64
@@ -5646,7 +5646,8 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
|
|||||||
vtn_handle_preamble_instruction);
|
vtn_handle_preamble_instruction);
|
||||||
|
|
||||||
if (b->entry_point == NULL) {
|
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);
|
ralloc_free(b);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user