if (var)
get_deref_offset(bld_base, deref, false, NULL, NULL,
&const_index, &indir_index);
- bld_base->store_var(bld_base, mode, bit_size, instr->num_components, writemask, const_index, var, src);
+ bld_base->store_var(bld_base, mode, instr->num_components, bit_size, var, writemask, const_index, src);
}
static void visit_load_ubo(struct lp_build_nir_context *bld_base,
LLVMValueRef result[NIR_MAX_VEC_COMPONENTS]);
void (*store_var)(struct lp_build_nir_context *bld_base,
nir_variable_mode deref_mode,
- unsigned bit_size,
unsigned num_components,
+ unsigned bit_size,
+ nir_variable *var,
unsigned writemask,
unsigned const_index,
- nir_variable *var, LLVMValueRef dst);
+ LLVMValueRef dst);
LLVMValueRef (*load_reg)(struct lp_build_nir_context *bld_base,
struct lp_build_context *reg_bld,
static void emit_store_var(struct lp_build_nir_context *bld_base,
nir_variable_mode deref_mode,
- unsigned bit_size,
unsigned num_components,
+ unsigned bit_size,
+ nir_variable *var,
unsigned writemask,
unsigned const_index,
- nir_variable *var, LLVMValueRef dst)
+ LLVMValueRef dst)
{
struct lp_build_nir_soa_context *bld = (struct lp_build_nir_soa_context *)bld_base;
LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder;