summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2023-05-09 11:51:55 -0400
committerMarge Bot <emma+marge@anholt.net>2023-05-18 00:37:46 +0000
commit684756e1622264e9810a8f2edda0447ac8a418ee (patch)
treeb7d48342a8b8bd1706c22d6e0250b7e63df71036
parentc7861fe1f2e5437eff36458340a61399b9a30d30 (diff)
downloadmesa-684756e1622264e9810a8f2edda0447ac8a418ee.tar.gz
vtn: add spirv index to type mismatch error for debugging
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22932>
-rw-r--r--src/compiler/spirv/vtn_variables.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 4cbd667b3ab..55bc4b66a2d 100644
--- a/src/compiler/spirv/vtn_variables.c
+++ b/src/compiler/spirv/vtn_variables.c
@@ -2266,10 +2266,10 @@ vtn_assert_types_equal(struct vtn_builder *b, SpvOp opcode,
return;
}
- vtn_fail("Source and destination types of %s do not match: %s vs. %s",
+ vtn_fail("Source and destination types of %s do not match: %s (%%%u) vs. %s (%%%u)",
spirv_op_to_string(opcode),
- glsl_get_type_name(dst_type->type),
- glsl_get_type_name(src_type->type));
+ glsl_get_type_name(dst_type->type), dst_type->id,
+ glsl_get_type_name(src_type->type), src_type->id);
}
static nir_ssa_def *