From 3511bb9eea93635e241f50d3209b6f91de71439e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 9 May 2023 16:50:06 -0400 Subject: vtn: print spirv ids for type mismatch in bcsel 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 ed71a2de955..68c3b43dba8 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -5634,7 +5634,7 @@ vtn_handle_select(struct vtn_builder *b, SpvOp opcode, vtn_fail_if(obj1_val->type != res_val->type || obj2_val->type != res_val->type, - "Object types must match the result type in OpSelect"); + "Object types must match the result type in OpSelect (%%%u = %%%u ? %%%u : %%%u)", w[2], w[3], w[4], w[5]); vtn_fail_if((cond_val->type->base_type != vtn_base_type_scalar && cond_val->type->base_type != vtn_base_type_vector) || -- cgit v1.2.1