diff options
-rw-r--r-- | src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c b/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c index 40ecbb20e5f..0396f5ffcc0 100644 --- a/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c +++ b/src/intel/compiler/brw_nir_lower_mem_access_bit_sizes.c @@ -222,7 +222,7 @@ lower_mem_store_bit_size(nir_builder *b, nir_intrinsic_instr *intrin) const unsigned store_src_comps = store_bytes / (bit_size / 8); assert(store_first_src_comp + store_src_comps <= num_components); - unsigned src_swiz[4]; + unsigned src_swiz[4] = { 0, }; for (unsigned i = 0; i < store_src_comps; i++) src_swiz[i] = store_first_src_comp + i; nir_ssa_def *store_value = |