X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fgallivm%2Flp_bld_nir_soa.c;h=b07e556ecc91d7559d9a219b77c3745f1251b064;hb=12c06a0deb632728f76ceb480e86151b8f96100e;hp=3134f959e39d66401ea9c2fec6c396859f6194d1;hpb=f0c3a258003ea8655bc05a0a0febf93ffb1a0736;p=mesa.git diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c index 3134f959e39..b07e556ecc9 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c @@ -929,13 +929,11 @@ static void emit_load_ubo(struct lp_build_nir_context *bld_base, LLVMValueRef overflow_mask; LLVMValueRef num_consts = lp_build_array_get(gallivm, bld->const_sizes_ptr, index); - num_consts = LLVMBuildShl(gallivm->builder, num_consts, lp_build_const_int32(gallivm, 4), ""); num_consts = lp_build_broadcast_scalar(uint_bld, num_consts); for (unsigned c = 0; c < nc; c++) { LLVMValueRef this_offset = lp_build_add(uint_bld, offset, lp_build_const_int_vec(gallivm, uint_bld->type, c)); overflow_mask = lp_build_compare(gallivm, uint_bld->type, PIPE_FUNC_GEQUAL, this_offset, num_consts); - result[c] = build_gather(bld_base, bld_broad, consts_ptr, this_offset, overflow_mask, NULL); } }