summaryrefslogtreecommitdiff
path: root/src/compiler/nir
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_opt_load_store_vectorize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_opt_load_store_vectorize.c b/src/compiler/nir/nir_opt_load_store_vectorize.c
index c31c8d293bf..d00b382f67e 100644
--- a/src/compiler/nir/nir_opt_load_store_vectorize.c
+++ b/src/compiler/nir/nir_opt_load_store_vectorize.c
@@ -709,11 +709,11 @@ new_bitsize_acceptable(struct vectorize_ctx *ctx, unsigned new_bit_size,
return false;
unsigned write_mask = nir_intrinsic_write_mask(low->intrin);
- if (!writemask_representable(write_mask, low_size, new_bit_size))
+ if (!writemask_representable(write_mask, get_bit_size(low), new_bit_size))
return false;
write_mask = nir_intrinsic_write_mask(high->intrin);
- if (!writemask_representable(write_mask, high_size, new_bit_size))
+ if (!writemask_representable(write_mask, get_bit_size(high), new_bit_size))
return false;
}