From 3aadc65fa88c17d61da3880d1974b35185c083cf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 9 May 2023 16:19:41 -0400 Subject: [PATCH] vtn: print spirv id for type mismatch error Reviewed-by: Caio Oliveira Part-of: --- src/compiler/spirv/spirv_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 648ceab..ed71a2d 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -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) { -- 2.7.4