Home
last modified time | relevance | path

Searched refs:dst_reg (Results 1 – 25 of 53) sorted by relevance

123

/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4.h78 dst_reg dst_null_f() in dst_null_f()
80 return dst_reg(brw_null_reg()); in dst_null_f()
83 dst_reg dst_null_df() in dst_null_df()
85 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in dst_null_df()
88 dst_reg dst_null_d() in dst_null_d()
90 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in dst_null_d()
93 dst_reg dst_null_ud() in dst_null_ud()
95 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in dst_null_ud()
122 dst_reg output_reg[VARYING_SLOT_TESS_MAX][4];
173 vec4_instruction *emit(enum opcode opcode, const dst_reg &dst);
[all …]
Dtest_vec4_register_coalesce.cpp60 virtual dst_reg *make_reg_for_system_value(int /* location */) in make_reg_for_system_value()
141 dst_reg temp = dst_reg(v, glsl_type::float_type); in TEST_F()
142 dst_reg init; in TEST_F()
144 dst_reg m0 = dst_reg(MRF, 0); in TEST_F()
160 dst_reg temp = dst_reg(v, glsl_type::vec4_type); in TEST_F()
161 dst_reg init; in TEST_F()
163 dst_reg m0 = dst_reg(MRF, 0); in TEST_F()
167 dst_reg m1 = dst_reg(MRF, 1); in TEST_F()
187 dst_reg init; in TEST_F()
189 dst_reg m0 = dst_reg(MRF, 0); in TEST_F()
[all …]
Dgfx6_gs_visitor.cpp69 emit(MOV(dst_reg(this->vertex_output_offset), brw_imm_ud(0u))); in emit_prolog()
74 vec4_instruction *inst = emit(MOV(dst_reg(MRF, 1), in emit_prolog()
91 emit(MOV(dst_reg(this->first_vertex), brw_imm_ud(URB_WRITE_PRIM_START))); in emit_prolog()
97 emit(MOV(dst_reg(this->prim_count), brw_imm_ud(0u))); in emit_prolog()
108 emit(MOV(dst_reg(this->max_svbi), in emit_prolog()
133 emit(GS_OPCODE_SET_PRIMITIVE_ID, dst_reg(this->primitive_id)); in emit_prolog()
146 dst_reg dst(this->vertex_output); in gs_emit_vertex()
162 dst_reg tmp = dst_reg(src_reg(this, glsl_type::uvec4_type)); in gs_emit_vertex()
164 dst_reg dst(this->vertex_output); in gs_emit_vertex()
171 emit(ADD(dst_reg(this->vertex_output_offset), in gs_emit_vertex()
[all …]
Dbrw_vec4_visitor.cpp31 vec4_instruction::vec4_instruction(enum opcode opcode, const dst_reg &dst, in vec4_instruction()
89 vec4_visitor::emit(enum opcode opcode, const dst_reg &dst, const src_reg &src0, in emit()
97 vec4_visitor::emit(enum opcode opcode, const dst_reg &dst, const src_reg &src0, in emit()
104 vec4_visitor::emit(enum opcode opcode, const dst_reg &dst, const src_reg &src0) in emit()
110 vec4_visitor::emit(enum opcode opcode, const dst_reg &dst) in emit()
118 return emit(new(mem_ctx) vec4_instruction(opcode, dst_reg())); in emit()
123 vec4_visitor::op(const dst_reg &dst, const src_reg &src0) \
130 vec4_visitor::op(const dst_reg &dst, const src_reg &src0, \
139 vec4_visitor::op(const dst_reg &dst, const src_reg &src0, \
150 vec4_visitor::op(const dst_reg &dst, const src_reg &src0, \
[all …]
Dbrw_fs_builder.h46 typedef fs_reg dst_reg; typedef
198 dst_reg
204 return dst_reg(VGRF, shader->alloc.allocate(
215 dst_reg
218 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_F)); in null_reg_f()
221 dst_reg
224 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in null_reg_df()
230 dst_reg
233 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in null_reg_d()
239 dst_reg
[all …]
Dtest_vec4_cmod_propagation.cpp62 virtual dst_reg *make_reg_for_system_value(int /* location */) in make_reg_for_system_value()
158 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
162 dst_reg dest_null = bld.null_reg_f(); in TEST_F()
194 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
198 dst_reg dest_null = bld.null_reg_f(); in TEST_F()
231 dst_reg dest = dst_reg(v, glsl_type::int_type); in TEST_F()
267 dst_reg dest = dst_reg(v, glsl_type::uint_type); in TEST_F()
300 dst_reg dest = dst_reg(v, glsl_type::float_type); in TEST_F()
339 dst_reg dest0 = dst_reg(v, glsl_type::float_type); in TEST_F()
340 dst_reg dest1 = dst_reg(v, glsl_type::float_type); in TEST_F()
[all …]
Dbrw_vec4_builder.h46 typedef brw::dst_reg dst_reg; typedef
171 dst_reg
177 return retype(dst_reg(VGRF, shader->alloc.allocate(
187 dst_reg
190 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_f()
197 dst_reg
200 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_d()
207 dst_reg
210 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_ud()
236 emit(enum opcode opcode, const dst_reg &dst) const in emit()
[all …]
Dbrw_ir_vec4.h32 class dst_reg; variable
51 explicit src_reg(const dst_reg &reg);
150 class dst_reg : public backend_reg
153 DECLARE_RALLOC_CXX_OPERATORS(dst_reg)
157 dst_reg();
158 dst_reg(enum brw_reg_file file, int nr);
159 dst_reg(enum brw_reg_file file, int nr, const glsl_type *type,
161 dst_reg(enum brw_reg_file file, int nr, brw_reg_type type,
163 dst_reg(struct ::brw_reg reg);
164 dst_reg(class vec4_visitor *v, const struct glsl_type *type);
[all …]
Dtest_vec4_copy_propagation.cpp57 virtual dst_reg *make_reg_for_system_value(int /* location */) in make_reg_for_system_value()
137 dst_reg a = dst_reg(v, glsl_type::vec4_type); in TEST_F()
138 dst_reg b = dst_reg(v, glsl_type::vec4_type); in TEST_F()
139 dst_reg c = dst_reg(v, glsl_type::vec4_type); in TEST_F()
166 dst_reg a = dst_reg(v, glsl_type::vec4_type); in TEST_F()
167 dst_reg b = dst_reg(v, glsl_type::vec4_type); in TEST_F()
168 dst_reg c = dst_reg(v, glsl_type::vec4_type); in TEST_F()
Dbrw_vec4_nir.cpp53 nir_locals = ralloc_array(mem_ctx, dst_reg, impl->reg_alloc); in nir_emit_impl()
55 nir_locals[i] = dst_reg(); in nir_emit_impl()
62 nir_locals[reg->index] = dst_reg(VGRF, alloc.allocate(num_regs)); in nir_emit_impl()
68 nir_ssa_values = ralloc_array(mem_ctx, dst_reg, impl->ssa_alloc); in nir_emit_impl()
172 static dst_reg
176 dst_reg reg; in dst_reg_for_nir_reg()
191 dst_reg
195 dst_reg dst = in get_nir_dest()
196 dst_reg(VGRF, alloc.allocate(DIV_ROUND_UP(dest.ssa.bit_size, 32))); in get_nir_dest()
207 dst_reg
[all …]
Dbrw_vec4_tcs.cpp79 emit(TCS_OPCODE_GET_INSTANCE_ID, dst_reg(invocation_id)); in emit_prolog()
117 dst_reg header = dst_reg(this, glsl_type::uvec4_type); in emit_thread_end()
139 dst_reg header(this, glsl_type::uvec4_type); in emit_thread_end()
156 vec4_tcs_visitor::emit_input_urb_read(const dst_reg &dst, in emit_input_urb_read()
163 dst_reg temp(this, glsl_type::ivec4_type); in emit_input_urb_read()
167 dst_reg header = dst_reg(this, glsl_type::uvec4_type); in emit_input_urb_read()
192 vec4_tcs_visitor::emit_output_urb_read(const dst_reg &dst, in emit_output_urb_read()
200 dst_reg header = dst_reg(this, glsl_type::uvec4_type); in emit_output_urb_read()
212 read->dst = retype(dst_reg(this, glsl_type::ivec4_type), dst.type); in emit_output_urb_read()
230 inst = emit(TCS_OPCODE_SET_OUTPUT_URB_OFFSETS, dst_reg(message), in emit_urb_write()
[all …]
Dbrw_vec4_gs_visitor.cpp168 dst_reg r0(retype(brw_vec4_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog()
177 inst = emit(MOV(dst_reg(this->vertex_count), brw_imm_ud(0u))); in emit_prolog()
192 inst = emit(MOV(dst_reg(this->control_data_bits), brw_imm_ud(0u))); in emit_prolog()
219 dst_reg mrf_reg(MRF, base_mrf); in emit_thread_end()
243 dst_reg mrf_reg(MRF, mrf); in emit_urb_write_header()
323 emit(ADD(dst_reg(prev_count), this->vertex_count, in emit_control_data_bits()
327 emit(SHR(dst_reg(dword_index), prev_count, in emit_control_data_bits()
335 dst_reg mrf_reg(MRF, base_mrf); in emit_control_data_bits()
345 emit(SHR(dst_reg(per_slot_offset), dword_index, brw_imm_ud(2u))); in emit_control_data_bits()
359 inst = emit(AND(dst_reg(channel), dword_index, brw_imm_ud(3u))); in emit_control_data_bits()
[all …]
Dtest_vec4_dead_code_eliminate.cpp57 virtual dst_reg *make_reg_for_system_value(int /* location */) in make_reg_for_system_value()
151 bld.CMP(dst_reg(r4), r2, r1, BRW_CONDITIONAL_L); in TEST_F()
157 bld.MOV(dst_reg(r5), r4); in TEST_F()
163 bld.SEL(dst_reg(r6), r3, r6); in TEST_F()
170 v->emit(v->SCRATCH_WRITE(dst_reg(r4), r6, r5)); in TEST_F()
Dbrw_vec4_tes.cpp88 emit(TES_OPCODE_CREATE_INPUT_READ_HEADER, dst_reg(input_read_header)); in emit_prolog()
173 dst_reg(clamped_indirect_offset), in nir_emit_intrinsic()
178 emit(TES_OPCODE_ADD_INDIRECT_URB_OFFSET, dst_reg(header), in nir_emit_intrinsic()
198 dst_reg temp(this, glsl_type::ivec4_type); in nir_emit_intrinsic()
210 dst_reg dst = get_nir_dest(instr->dest, BRW_REGISTER_TYPE_D); in nir_emit_intrinsic()
Dbrw_vec4_surface_builder.cpp41 const dst_reg dst = bld.vgrf(src.type, in emit_stride()
70 const dst_reg tmp = bld.vgrf(src.type); in emit_insert()
105 const dst_reg payload = bld.vgrf(BRW_REGISTER_TYPE_UD, sz); in emit_send()
126 const dst_reg dst = bld.vgrf(BRW_REGISTER_TYPE_UD, ret_sz); in emit_send()
193 const dst_reg srcs = bld.vgrf(BRW_REGISTER_TYPE_UD); in emit_untyped_atomic()
Dbrw_vec4.cpp76 src_reg::src_reg(const dst_reg &reg) : in src_reg()
84 dst_reg::init() in init()
92 dst_reg::dst_reg() in dst_reg() function in brw::dst_reg
97 dst_reg::dst_reg(enum brw_reg_file file, int nr) in dst_reg() function in brw::dst_reg
105 dst_reg::dst_reg(enum brw_reg_file file, int nr, const glsl_type *type, in dst_reg() function in brw::dst_reg
116 dst_reg::dst_reg(enum brw_reg_file file, int nr, brw_reg_type type, in dst_reg() function in brw::dst_reg
127 dst_reg::dst_reg(struct ::brw_reg reg) : in dst_reg() function in brw::dst_reg
134 dst_reg::dst_reg(const src_reg &reg) : in dst_reg() function in brw::dst_reg
142 dst_reg::equals(const dst_reg &r) const in equals()
988 dst_reg temp = dst_reg(this, temp_type); in move_push_constants_to_pull_constants()
[all …]
Dbrw_fs_register_coalesce.cpp197 unsigned src_reg = ~0u, dst_reg = ~0u; in register_coalesce() local
222 dst_reg = inst->dst.nr; in register_coalesce()
225 if (dst_reg != inst->dst.nr) in register_coalesce()
264 dst_var[i] = live.var_from_vgrf[dst_reg] + dst_reg_offset[i]; in register_coalesce()
306 scan_inst->dst.nr = dst_reg; in register_coalesce()
314 scan_inst->src[j].nr = dst_reg; in register_coalesce()
Dbrw_vec4_tcs.h58 void emit_input_urb_read(const dst_reg &dst,
63 void emit_output_urb_read(const dst_reg &dst,
Dbrw_vec4_dead_code_eliminate.cpp108 inst->dst = dst_reg(retype(brw_null_reg(), inst->dst.type)); in dead_code_eliminate()
118 inst->dst = dst_reg(retype(brw_null_reg(), inst->dst.type)); in dead_code_eliminate()
/third_party/ltp/include/lapi/
Dbpf.h75 uint8_t dst_reg:4; /* dest register */ member
450 .dst_reg = DST, \
458 .dst_reg = DST, \
466 .dst_reg = DST, \
474 .dst_reg = DST, \
482 .dst_reg = DST, \
490 .dst_reg = DST, \
501 .dst_reg = DST, \
507 .dst_reg = 0, \
519 .dst_reg = DST, \
[all …]
/third_party/mesa3d/src/freedreno/ir3/
Dir3_parser.y819 } dst_reg {
837 … '.' T_CAT1_TYPE_TYPE { parse_type_type(new_instr(OPC_SWZ), $3); } dst_reg ',' dst_reg ',' src_reg…
839 …OP_GAT '.' T_CAT1_TYPE_TYPE { parse_type_type(new_instr(OPC_GAT), $3); } dst_reg ',' src_reg ',' s…
841 …TYPE_TYPE { parse_type_type(new_instr(OPC_SCT), $3); } dst_reg ',' dst_reg ',' dst_reg ',' dst_reg
850 | cat1_opc dst_reg ',' cat1_src
909 cat2_instr: cat2_opc_1src dst_reg ',' src_reg_or_const_or_rel_or_imm
910 | cat2_opc_2src_cnd '.' cond dst_reg ',' src_reg_or_const_or_rel_or_imm ',' src_re…
911 | cat2_opc_2src dst_reg ',' src_reg_or_const_or_rel_or_imm ',' src_reg_or_const_or…
930 cat3_instr: cat3_opc dst_reg ',' src_reg_or_const_or_rel ',' src_reg_or_const ',' src_reg_or…
931 | T_OP_SHLG_B16 { new_instr(OPC_SHLG_B16); } dst_reg ',' src_reg_or_rel_or_imm ','…
[all …]
/third_party/mesa3d/src/mesa/program/
Dir_to_mesa.cpp63 class dst_reg;
92 explicit src_reg(dst_reg reg);
102 class dst_reg { class
104 dst_reg(gl_register_file file, int writemask) in dst_reg() function in __anon00c4b7760111::dst_reg
112 dst_reg() in dst_reg() function in __anon00c4b7760111::dst_reg
120 explicit dst_reg(src_reg reg);
131 src_reg::src_reg(dst_reg reg) in src_reg()
140 dst_reg::dst_reg(src_reg reg) in dst_reg() function in dst_reg
155 dst_reg dst;
278 dst_reg dst, src_reg src0);
[all …]
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_fpc_optimize.c281 struct i915_full_dst_register *dst_reg, int pos) in liveness_mark_written() argument
284 if (dst_reg->Register.File == TGSI_FILE_TEMPORARY) { in liveness_mark_written()
285 dst_reg_index = dst_reg->Register.Index; in liveness_mark_written()
311 struct i915_full_dst_register *dst_reg; in liveness_analysis() local
334 dst_reg = &current->FullInstruction.Dst[0]; in liveness_analysis()
335 liveness_mark_written(ctx, dst_reg, i); in liveness_analysis()
377 struct i915_full_dst_register *dst_reg, int from) in unused_from() argument
379 int dst_reg_index = dst_reg->Register.Index; in unused_from()
/third_party/pcre2/pcre2/src/sljit/
DsljitNativeARM_32.c1555 sljit_s32 dst_reg; in emit_op() local
1642 dst_reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in emit_op()
1653 if (FAST_IS_REG(src2) && dst_reg != TMP_REG2) in emit_op()
1659 src2_reg = (op <= SLJIT_MOV_P) ? dst_reg : TMP_REG2; in emit_op()
1669 FAIL_IF(emit_single_op(compiler, op, flags, dst_reg, src1_reg, src2_reg)); in emit_op()
1674 return emit_op_mem(compiler, inp_flags, dst_reg, dst, dstw, TMP_REG1); in emit_op()
2593 sljit_s32 dst_reg, flags = GET_ALL_FLAGS(op); in sljit_emit_op_flags() local
2602 dst_reg = FAST_IS_REG(dst) ? dst : TMP_REG1; in sljit_emit_op_flags()
2605 FAIL_IF(push_inst(compiler, MOV | RD(dst_reg) | SRC2_IMM | 0)); in sljit_emit_op_flags()
2606 FAIL_IF(push_inst(compiler, ((MOV | RD(dst_reg) | SRC2_IMM | 1) & ~COND_MASK) | cc)); in sljit_emit_op_flags()
[all …]
DsljitNativeARM_64.c1849 sljit_s32 dst_reg, in sljit_emit_cmov() argument
1852 sljit_ins inv_bits = (dst_reg & SLJIT_I32_OP) ? W_OP : 0; in sljit_emit_cmov()
1856 CHECK(check_sljit_emit_cmov(compiler, type, dst_reg, src, srcw)); in sljit_emit_cmov()
1859 if (dst_reg & SLJIT_I32_OP) in sljit_emit_cmov()
1867 dst_reg &= ~SLJIT_I32_OP; in sljit_emit_cmov()
1869 return push_inst(compiler, (CSEL ^ inv_bits) | (cc << 12) | RD(dst_reg) | RN(dst_reg) | RM(src)); in sljit_emit_cmov()
1953 sljit_s32 dst_reg; in sljit_get_local_base() local
1961 dst_reg = FAST_IS_REG(dst) ? dst : TMP_REG1; in sljit_get_local_base()
1971 FAIL_IF(push_inst(compiler, ins | RD(dst_reg) | RN(SLJIT_SP) | (offset << 10))); in sljit_get_local_base()
1973 …FAIL_IF(push_inst(compiler, ins | RD(dst_reg) | RN(SLJIT_SP) | ((offset & 0xfff000) >> (12 - 10)) … in sljit_get_local_base()
[all …]

123