Home
last modified time | relevance | path

Searched refs:off_src (Results 1 – 3 of 3) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_opt_offsets.c117 nir_src *off_src = &intrin->src[offset_src_idx]; in try_fold_load_store() local
120 if (!off_src->is_ssa || off_src->ssa->bit_size != 32) in try_fold_load_store()
123 if (!nir_src_is_const(*off_src)) { in try_fold_load_store()
125 nir_ssa_scalar val = {.def = off_src->ssa, .comp = 0}; in try_fold_load_store()
132 } else if (nir_src_as_uint(*off_src) && off_const + nir_src_as_uint(*off_src) <= max) { in try_fold_load_store()
133 off_const += nir_src_as_uint(*off_src); in try_fold_load_store()
135 replace_src = nir_imm_zero(b, off_src->ssa->num_components, off_src->ssa->bit_size); in try_fold_load_store()
157 nir_src *off_src = &intrin->src[offset_src_idx]; in try_fold_shared2() local
159 if (!nir_src_is_const(*off_src)) in try_fold_shared2()
162 unsigned const_offset = nir_src_as_uint(*off_src); in try_fold_shared2()
[all …]
/third_party/mesa3d/src/amd/common/
Dac_nir_lower_tess_io_to_mem.c289 nir_src *off_src = nir_get_io_offset_src(intrin); in filter_load_tcs_per_vertex_input() local
293 bool can_use_temps = nir_src_is_const(*off_src) && in filter_load_tcs_per_vertex_input()
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp5221 nir_src* off_src = nir_get_io_offset_src(instr); in load_input_from_temps() local
5225 nir_src_is_const(*off_src) && vertex_index_instr->type == nir_instr_type_intrinsic && in load_input_from_temps()
5232 4 * nir_src_as_uint(*off_src); in load_input_from_temps()