diff options
author | Mike Blumenkrantz <michael.blumenkrantz@gmail.com> | 2023-05-11 10:21:18 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-18 00:37:46 +0000 |
commit | f9688f637884a8f041ca17e857d664abe4a924b8 (patch) | |
tree | 2c85df75638dca32e73502685c983802b6082f81 | |
parent | 3511bb9eea93635e241f50d3209b6f91de71439e (diff) | |
download | mesa-f9688f637884a8f041ca17e857d664abe4a924b8.tar.gz |
vtn: add more info to bitcast bit size error message
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_alu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c index 7a5708c8d8f..7048149e510 100644 --- a/src/compiler/spirv/vtn_alu.c +++ b/src/compiler/spirv/vtn_alu.c @@ -1301,8 +1301,8 @@ vtn_handle_bitcast(struct vtn_builder *b, const uint32_t *w, unsigned count) vtn_fail_if(src->num_components * src->bit_size != glsl_get_vector_elements(type->type) * glsl_get_bit_size(type->type), - "Source and destination of OpBitcast must have the same " - "total number of bits"); + "Source (%%%u) and destination (%%%u) of OpBitcast must have the same " + "total number of bits", w[3], w[2]); nir_ssa_def *val = nir_bitcast_vector(&b->nb, src, glsl_get_bit_size(type->type)); vtn_push_nir_ssa(b, w[2], val); |