Home
last modified time | relevance | path

Searched refs:value_factory (Results 1 – 21 of 21) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_instr_alu.cpp819 Instr::Pointer AluInstr::from_string(istream& is, ValueFactory& value_factory, AluGroup *group) in from_string() argument
918 auto src = value_factory.src_from_string(srcstr); in from_string()
1000 dest = value_factory.dest_from_string(deststr); in from_string()
1427 auto& value_factory = shader.value_factory(); in emit_alu_op1_64bit() local
1442 value_factory.dest(alu.dest, 2 * i + c, pin_chan), in emit_alu_op1_64bit()
1443 value_factory.src64(alu.src[0], i, swz[c]), in emit_alu_op1_64bit()
1458 auto& value_factory = shader.value_factory(); in emit_alu_mov_64bit() local
1465 value_factory.dest(alu.dest, 2 * i + c, pin_free), in emit_alu_mov_64bit()
1466 value_factory.src64(alu.src[0], i, c), in emit_alu_mov_64bit()
1480 auto& value_factory = shader.value_factory(); in emit_alu_neg() local
[all …]
Dsfn_shader_tess.cpp75 m_primitive_id = value_factory().allocate_pinned_register(0, 0); in do_allocate_reserved_registers()
80 m_invocation_id = value_factory().allocate_pinned_register(0, 2); in do_allocate_reserved_registers()
85 m_rel_patch_id = value_factory().allocate_pinned_register(0, 1);; in do_allocate_reserved_registers()
90 m_tess_factor_base = value_factory().allocate_pinned_register(0, 3); in do_allocate_reserved_registers()
94 return value_factory().next_register_index();; in do_allocate_reserved_registers()
119 auto value0 = value_factory().temp_vec4(pin_group, {0, 1, 7, 7}); in store_tess_factor()
120 emit_instruction(new AluInstr(op1_mov, value0[0], value_factory().src(instr->src[0], 0), in store_tess_factor()
122 emit_instruction(new AluInstr(op1_mov, value0[1], value_factory().src(instr->src[0], 1), in store_tess_factor()
127 auto value1 = value_factory().temp_vec4(pin_group, {2, 3, 7, 7}); in store_tess_factor()
128 emit_instruction(new AluInstr(op1_mov, value1[0], value_factory().src(instr->src[0], 2), in store_tess_factor()
[all …]
Dsfn_shader.cpp323 value_factory().dest_from_string(reg_str); in allocate_registers_from_string()
326 auto regs = value_factory().dest_vec4_from_string(reg_str, swz, pin); in allocate_registers_from_string()
352 value_factory().array_from_string(reg_str); in allocate_arrays_from_string()
376 m_instr_factory->value_factory().set_virtual_register_base(0); in allocate_reserved_registers()
378 m_instr_factory->value_factory().set_virtual_register_base(reserved_registers_end); in allocate_reserved_registers()
380 m_atomic_update = value_factory().temp_register(); in allocate_reserved_registers()
382 value_factory().one_i(), in allocate_reserved_registers()
389 m_rat_return_address = value_factory().temp_register(0); in allocate_reserved_registers()
390 auto temp0 = value_factory().temp_register(0); in allocate_reserved_registers()
391 auto temp1 = value_factory().temp_register(1); in allocate_reserved_registers()
[all …]
Dsfn_shader_gs.cpp162 m_per_vertex_offsets[i] = value_factory().allocate_pinned_register(sel[i], chan[i]); in do_allocate_reserved_registers()
166 m_primitive_id = value_factory().allocate_pinned_register(0, 2); in do_allocate_reserved_registers()
168 m_invocation_id = value_factory().allocate_pinned_register(1, 3); in do_allocate_reserved_registers()
171 value_factory().set_virtual_register_base(2); in do_allocate_reserved_registers()
173 auto zero = value_factory().inline_const(ALU_SRC_0, 0); in do_allocate_reserved_registers()
176 m_export_base[i] = value_factory().temp_register(0, false); in do_allocate_reserved_registers()
194 return value_factory().next_register_index(); in do_allocate_reserved_registers()
238 value_factory().literal(m_noutputs), in emit_vertex()
264 auto out_value = value_factory().src_vec4(instr->src[0], pin_group, src_swz); in store_output()
269 auto tmp = value_factory().temp_vec4(pin_group); in store_output()
[all …]
Dsfn_shader_fs.cpp82 auto& vf = value_factory(); in load_input()
170 value_factory().src(intr->src[0], 0), in process_stage_intrinsic()
171 value_factory().zero(), in process_stage_intrinsic()
178 value_factory().zero(), in process_stage_intrinsic()
179 value_factory().zero(), in process_stage_intrinsic()
201 auto& vf = value_factory(); in load_interpolated_input()
224 m_pos_input = value_factory().allocate_pinned_vec4(next_register++, false); in do_allocate_reserved_registers()
234 m_face_input = value_factory().allocate_pinned_register(face_reg_index, 0); in do_allocate_reserved_registers()
241 m_sample_mask_reg = value_factory().allocate_pinned_register(face_reg_index, 2); in do_allocate_reserved_registers()
253 m_sample_id_reg = value_factory().allocate_pinned_register(sample_id_reg, 3); in do_allocate_reserved_registers()
[all …]
Dsfn_shader_cs.cpp46 auto& vf = value_factory(); in do_allocate_reserved_registers()
92 auto zero = value_factory().temp_register(); in emit_load_num_workgroups()
94 emit_instruction(new AluInstr(op1_mov, zero, value_factory().inline_const(ALU_SRC_0, 0), in emit_load_num_workgroups()
96 auto dest = value_factory().dest_vec4(instr->dest, pin_group); in emit_load_num_workgroups()
112 auto& vf = value_factory(); in emit_load_3vec()
Dsfn_shader_vs.cpp126 auto& vf = m_parent->value_factory(); in emit_clip_vertices()
153 auto primid = m_parent->value_factory().temp_vec4(pin_group, {2, 7, 7, 7}); in finalize()
207 auto in_value = m_parent->value_factory().src_vec4(intr.src[0], pin_group, swizzle); in emit_varying_pos()
209 RegisterVec4 out_value = m_parent->value_factory().temp_vec4(pin_group, swizzle); in emit_varying_pos()
215 auto src = m_parent->value_factory().src(intr.src[0], 0); in emit_varying_pos()
216 auto clamped = m_parent->value_factory().temp_register(); in emit_varying_pos()
275 auto value = m_parent->value_factory().temp_vec4(pin, swizzle); in emit_varying_param()
280 … alu = new AluInstr(op1_mov, value[i], m_parent->value_factory().src(intr.src[0], swizzle[i]), in emit_varying_param()
352 tmp[i] = m_parent->value_factory().temp_vec4(pin_group, swizzle); in emit_stream()
481 auto& vf = value_factory(); in load_input()
[all …]
Dsfn_instr_lds.cpp185 auto LDSReadInstr::from_string(istream& is, ValueFactory& value_factory) -> Pointer in from_string() argument
199 auto dst = value_factory.dest_from_string(temp_str); in from_string()
212 auto src = value_factory.src_from_string(temp_str); in from_string()
385 auto LDSAtomicInstr::from_string(istream& is, ValueFactory& value_factory) -> Pointer in from_string() argument
412 dest = value_factory.dest_from_string(temp_str); in from_string()
417 auto addr = value_factory.src_from_string(temp_str); in from_string()
428 auto src = value_factory.src_from_string(temp_str); in from_string()
Dsfn_instr_tex.cpp323 Inputs src(*tex, shader.value_factory()); in from_nir()
387 auto& vf = shader.value_factory(); in emit_tex_tex()
414 auto& vf = shader.value_factory(); in emit_tex_txl_txb()
440 auto& vf = shader.value_factory(); in emit_tex_txf()
491 auto& vf = shader.value_factory(); in emit_buf_txf()
536 auto& vf = shader.value_factory(); in emit_tex_tex_ms_direct()
574 auto& vf = shader.value_factory(); in emit_tex_tex_ms()
663 RegisterVec4 dest = shader.value_factory().dest_vec4(instr->dest, pin_chan); in emit_tex_texture_samples()
678 auto& vf = shader.value_factory(); in emit_tex_txd()
765 auto& vf = shader.value_factory(); in emit_tex_txs()
[all …]
Dsfn_instr_mem.cpp181 auto& vf = shader.value_factory(); in emit_atomic_op2()
229 auto& vf = shader.value_factory(); in emit_atomic_read()
258 auto& vf = shader.value_factory(); in emit_atomic_inc()
291 auto& vf = shader.value_factory(); in emit_atomic_pre_dec()
519 auto &vf = shader.value_factory(); in emit_ssbo_load()
562 auto &vf = shader.value_factory(); in emit_ssbo_store()
596 auto& vf = shader.value_factory(); in emit_ssbo_atomic_op()
659 auto& vf = shader.value_factory(); in emit_ssbo_size()
675 auto& vf = shader.value_factory(); in emit_image_store()
711 auto& vf = shader.value_factory(); in emit_image_load_or_atomic()
[all …]
Dsfn_instr_lds.h53 static auto from_string(std::istream& is, ValueFactory& value_factory) -> Pointer;
91 static auto from_string(std::istream& is, ValueFactory& value_factory) -> Pointer;
Dsfn_instr_controlflow.cpp174 Instr::Pointer IfInstr::from_string(std::istream &is, ValueFactory& value_factory) in from_string() argument
198 auto pred = AluInstr::from_string(bufstr, value_factory, nullptr); in from_string()
Dsfn_instrfactory.cpp205 auto dest = shader.value_factory().undef(undef->def.index, i); in process_undef()
207 value_factory().zero(), in process_undef()
Dsfn_instrfactory.h45 auto& value_factory() { return m_value_factory;} in value_factory() function
Dsfn_instr_controlflow.h91 static Instr::Pointer from_string(std::istream &is, ValueFactory& value_factory);
Dsfn_instr_mem.h60 static auto from_string(std::istream& is, ValueFactory& value_factory) -> Pointer;
Dsfn_instr_alu.h134 static Instr::Pointer from_string(std::istream &is, ValueFactory& value_factory, AluGroup *);
Dsfn_shader.h169 ValueFactory& value_factory();
Dsfn_scheduler.cpp276 schedule_block(*block, scheduled_blocks, shader->value_factory()); in run()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/
Dsfn_optimizer_test.cpp287 s->value_factory().clear_pins(); in ra_check()
292 expect->value_factory().clear_pins(); in ra_check()
Dsfn_instrfromstring_test.cpp717 m_instr_factory.value_factory().dest_from_string(init); in add_dest_from_string()
723 m_instr_factory.value_factory().dest_vec4_from_string(init, dummy); in add_dest_vec4_from_string()