Searched refs:chan_intr (Results 1 – 3 of 3) sorted by relevance
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_io_to_scalar.c | 53 nir_intrinsic_instr *chan_intr = in lower_load_input_to_scalar() local 55 nir_ssa_dest_init(&chan_intr->instr, &chan_intr->dest, in lower_load_input_to_scalar() 57 chan_intr->num_components = 1; in lower_load_input_to_scalar() 59 nir_intrinsic_set_base(chan_intr, nir_intrinsic_base(intr)); in lower_load_input_to_scalar() 60 nir_intrinsic_set_component(chan_intr, nir_intrinsic_component(intr) + i); in lower_load_input_to_scalar() 61 nir_intrinsic_set_dest_type(chan_intr, nir_intrinsic_dest_type(intr)); in lower_load_input_to_scalar() 62 set_io_semantics(chan_intr, intr, i); in lower_load_input_to_scalar() 65 nir_src_copy(&chan_intr->src[j], &intr->src[j]); in lower_load_input_to_scalar() 67 nir_builder_instr_insert(b, &chan_intr->instr); in lower_load_input_to_scalar() 69 loads[i] = &chan_intr->dest.ssa; in lower_load_input_to_scalar() [all …]
|
/third_party/mesa3d/src/imagination/rogue/nir/ |
D | rogue_nir_lower_io.c | 71 nir_intrinsic_instr *chan_intr = in lower_load_ubo_to_scalar() local 73 nir_ssa_dest_init(&chan_intr->instr, in lower_load_ubo_to_scalar() 74 &chan_intr->dest, in lower_load_ubo_to_scalar() 78 chan_intr->num_components = 1; in lower_load_ubo_to_scalar() 80 nir_intrinsic_set_access(chan_intr, nir_intrinsic_access(intr)); in lower_load_ubo_to_scalar() 81 nir_intrinsic_set_align_mul(chan_intr, nir_intrinsic_align_mul(intr)); in lower_load_ubo_to_scalar() 82 nir_intrinsic_set_align_offset(chan_intr, in lower_load_ubo_to_scalar() 84 nir_intrinsic_set_range_base(chan_intr, in lower_load_ubo_to_scalar() 87 nir_intrinsic_set_range(chan_intr, scaled_range); in lower_load_ubo_to_scalar() 90 nir_src_copy(&chan_intr->src[0], &intr->src[0]); in lower_load_ubo_to_scalar() [all …]
|
/third_party/mesa3d/src/gallium/drivers/lima/ir/ |
D | lima_nir_lower_uniform_to_scalar.c | 36 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()
|