vtn: print spirv id for type mismatch error

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22932>
This commit is contained in:
Mike Blumenkrantz
2023-05-09 16:19:41 -04:00
committed by Marge Bot
parent 684756e162
commit 3aadc65fa8
+1 -1
View File
@@ -367,7 +367,7 @@ vtn_push_ssa_value(struct vtn_builder *b, uint32_t value_id,
/* See vtn_create_ssa_value */
vtn_fail_if(ssa->type != glsl_get_bare_type(type->type),
"Type mismatch for SPIR-V SSA value");
"Type mismatch for SPIR-V value %%%u", value_id);
struct vtn_value *val;
if (type->base_type == vtn_base_type_pointer) {