Home
last modified time | relevance | path

Searched refs:chan_intr (Results 1 – 2 of 2) sorted by relevance

/third_party/mesa3d/src/compiler/nir/
Dnir_lower_io_to_scalar.c44 nir_intrinsic_instr *chan_intr = in lower_load_input_to_scalar() local
46 nir_ssa_dest_init(&chan_intr->instr, &chan_intr->dest, in lower_load_input_to_scalar()
48 chan_intr->num_components = 1; in lower_load_input_to_scalar()
50 nir_intrinsic_set_base(chan_intr, nir_intrinsic_base(intr)); in lower_load_input_to_scalar()
51 nir_intrinsic_set_component(chan_intr, nir_intrinsic_component(intr) + i); in lower_load_input_to_scalar()
52 nir_intrinsic_set_dest_type(chan_intr, nir_intrinsic_dest_type(intr)); in lower_load_input_to_scalar()
53 nir_intrinsic_set_io_semantics(chan_intr, nir_intrinsic_io_semantics(intr)); in lower_load_input_to_scalar()
55 nir_src_copy(&chan_intr->src[0], &intr->src[0]); in lower_load_input_to_scalar()
57 nir_builder_instr_insert(b, &chan_intr->instr); in lower_load_input_to_scalar()
59 loads[i] = &chan_intr->dest.ssa; in lower_load_input_to_scalar()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/
Dlima_nir_lower_uniform_to_scalar.c36 nir_intrinsic_instr *chan_intr = in lower_load_uniform_to_scalar() local
38 nir_ssa_dest_init(&chan_intr->instr, &chan_intr->dest, in lower_load_uniform_to_scalar()
40 chan_intr->num_components = 1; in lower_load_uniform_to_scalar()
42 nir_intrinsic_set_base(chan_intr, nir_intrinsic_base(intr) * 4 + i); in lower_load_uniform_to_scalar()
43 nir_intrinsic_set_range(chan_intr, nir_intrinsic_range(intr) * 4); in lower_load_uniform_to_scalar()
44 nir_intrinsic_set_dest_type(chan_intr, nir_intrinsic_dest_type(intr)); in lower_load_uniform_to_scalar()
46 chan_intr->src[0] = in lower_load_uniform_to_scalar()
49 nir_builder_instr_insert(b, &chan_intr->instr); in lower_load_uniform_to_scalar()
51 loads[i] = &chan_intr->dest.ssa; in lower_load_uniform_to_scalar()