/external/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instruction_lds.h | 10 LDSReadInstruction(std::vector<PValue>& value, std::vector<PValue>& address); 11 void replace_values(const ValueSet& candiates, PValue new_value) override; 20 std::vector<PValue> m_address; 21 std::vector<PValue> m_dest_value; 26 LDSAtomicInstruction(PValue& dest, PValue& src0, PValue src1, PValue& address, unsigned op); 27 LDSAtomicInstruction(PValue& dest, PValue& src0, PValue& address, unsigned op); 32 const PValue& src1() const { return m_src1_value;} in src1() 39 PValue m_address; 40 PValue m_dest_value; 41 PValue m_src0_value; [all …]
|
D | sfn_valuepool.h | 43 void insert(const PValue& v) { in insert() 47 PValue get_or_inject(uint32_t index, uint32_t chan) { in get_or_inject() 51 insert(PValue(new GPRValue(index, chan))); in get_or_inject() 56 std::map<uint32_t, PValue>::const_iterator begin() const {return m_map.begin();} in begin() 57 std::map<uint32_t, PValue>::const_iterator end() const {return m_map.end();} in end() 63 std::map<uint32_t, PValue> m_map; 92 std::vector<PValue> varvec_from_nir(const nir_dest& src, int num_components); 93 std::vector<PValue> varvec_from_nir(const nir_src& src, int num_components); 95 PValue from_nir(const nir_src& v, unsigned component, unsigned swizzled); 97 PValue from_nir(const nir_src& v, unsigned component); [all …]
|
D | sfn_instruction_alu.h | 88 AluInstruction(EAluOp opcode, PValue dest, 89 std::vector<PValue> src0, 92 AluInstruction(EAluOp opcode, PValue dest, PValue src0, 95 AluInstruction(EAluOp opcode, PValue dest, 96 PValue src0, PValue src1, 99 AluInstruction(EAluOp opcode, PValue dest, PValue src0, PValue src1, 100 PValue src2, 107 PValue dest() {return m_dest;} in dest() 111 PValue *psrc(unsigned i) {assert(i < m_src.size()); return &m_src[i];} in psrc() 120 void replace_values(const ValueSet& candiates, PValue new_value) override; [all …]
|
D | sfn_instruction_lds.cpp | 15 LDSReadInstruction::LDSReadInstruction(std::vector<PValue>& address, std::vector<PValue>& value): in LDSReadInstruction() 28 void LDSReadInstruction::replace_values(const ValueSet& candiates, PValue new_value) in replace_values() 50 LDSAtomicInstruction::LDSAtomicInstruction(PValue& dest, PValue& src0, PValue src1, PValue& address… in LDSAtomicInstruction() 64 LDSAtomicInstruction::LDSAtomicInstruction(PValue& dest, PValue& src0, PValue& address, unsigned op… in LDSAtomicInstruction() 65 LDSAtomicInstruction(dest, src0, PValue(), address, op) in LDSAtomicInstruction() 91 LDSWriteInstruction::LDSWriteInstruction(PValue address, unsigned idx_offset, PValue value0): in LDSWriteInstruction() 92 LDSWriteInstruction::LDSWriteInstruction(address, idx_offset, value0, PValue()) in LDSWriteInstruction() 97 LDSWriteInstruction::LDSWriteInstruction(PValue address, unsigned idx_offset, PValue value0, PValue… in LDSWriteInstruction() 119 void LDSWriteInstruction::replace_values(const ValueSet& candiates, PValue new_value) in replace_values()
|
D | sfn_value_gpr.h | 78 using Values = std::array<PValue,4>; 84 GPRVector(std::array<PValue,4> elms); 94 void set_reg_i(int i, PValue reg); 97 PValue reg_i(int i) const {return m_elms[i];} in reg_i() 98 PValue operator [] (int i) const {return m_elms[i];} 99 PValue& operator [] (int i) {return m_elms[i];} 104 PValue x() const {return m_elms[0];} in x() 105 PValue y() const {return m_elms[1];} in y() 106 PValue z() const {return m_elms[2];} in z() 107 PValue w() const {return m_elms[3];} in w() [all …]
|
D | sfn_emitinstruction.h | 55 PValue from_nir(const nir_src& v, unsigned component, unsigned swizzled); 56 PValue from_nir(const nir_src& v, unsigned component); 57 PValue from_nir(const nir_alu_src& v, unsigned component); 58 PValue from_nir(const nir_tex_src& v, unsigned component); 59 PValue from_nir(const nir_alu_dest& v, unsigned component); 60 PValue from_nir(const nir_dest& v, unsigned component); 64 PValue create_register_from_nir_src(const nir_src& src, unsigned comp); 74 bool emit_instruction(EAluOp opcode, PValue dest, 75 std::vector<PValue> src0, 78 PValue from_nir_with_fetch_constant(const nir_src& src, unsigned component, int channel = -1); [all …]
|
D | sfn_instruction_fetch.h | 42 const PValue src, 56 PValue buffer_offset, 62 PValue src, int offset, 63 int buffer_id, PValue buffer_offset, 68 PValue src, 70 PValue buffer_offset, 75 PValue src, 79 FetchInstruction(GPRVector dst, PValue src, int scratch_size); 81 void replace_values(const ValueSet& candiates, PValue new_value) override; 113 void set_buffer_offset(PValue buffer_offset) { in set_buffer_offset() [all …]
|
D | sfn_instruction_gds.h | 39 GDSInstr(ESDOp op, const GPRVector& dest, const PValue& value, 40 const PValue &uav_id, int uav_base); 41 GDSInstr(ESDOp op, const GPRVector& dest, const PValue& value, 42 const PValue& value2, const PValue &uav_id, int uav_base); 43 GDSInstr(ESDOp op, const GPRVector& dest, const PValue &uav_id, int uav_base); 79 PValue uav_id() const {return m_uav_id;} in uav_id() 89 PValue m_src; 90 PValue m_src2; 96 PValue m_uav_id; 149 int rat_id, const PValue& rat_id_offset, [all …]
|
D | sfn_instruction_alu.cpp | 50 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, in AluInstruction() 51 std::vector<PValue> src, in AluInstruction() 73 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, PValue src0, in AluInstruction() 75 AluInstruction(opcode, dest, std::vector<PValue>{src0}, flags) in AluInstruction() 79 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, in AluInstruction() 80 PValue src0, PValue src1, in AluInstruction() 86 AluInstruction::AluInstruction(EAluOp opcode, PValue dest, PValue src0, in AluInstruction() 87 PValue src1, PValue src2, in AluInstruction() 115 void AluInstruction::replace_values(const ValueSet& candiates, PValue new_value) in replace_values() 128 PValue AluInstruction::remap_one_registers(PValue reg, std::vector<rename_reg_pair>& map, in remap_one_registers()
|
D | sfn_emitinstruction.cpp | 48 PValue EmitInstruction::from_nir(const nir_src& v, unsigned component, unsigned swizzled) in from_nir() 53 PValue EmitInstruction::from_nir(const nir_alu_src& v, unsigned component) in from_nir() 58 PValue EmitInstruction::from_nir(const nir_tex_src& v, unsigned component) in from_nir() 63 PValue EmitInstruction::from_nir(const nir_alu_dest& v, unsigned component) in from_nir() 68 PValue EmitInstruction::from_nir(const nir_dest& v, unsigned component) in from_nir() 73 PValue EmitInstruction::from_nir(const nir_src& v, unsigned component) in from_nir() 88 bool EmitInstruction::emit_instruction(EAluOp opcode, PValue dest, in emit_instruction() 89 std::vector<PValue> src0, in emit_instruction() 101 PValue EmitInstruction::from_nir_with_fetch_constant(const nir_src& src, unsigned component, int ch… in from_nir_with_fetch_constant() 137 PValue EmitInstruction::create_register_from_nir_src(const nir_src& src, unsigned swizzle) in create_register_from_nir_src() [all …]
|
D | sfn_valuepool.cpp | 48 PValue ValuePool::m_undef = Value::zero; 52 std::array<PValue, 4> result; in vec_from_nir() 58 std::vector<PValue> ValuePool::varvec_from_nir(const nir_dest& dst, int num_components) in varvec_from_nir() 60 std::vector<PValue> result(num_components); in varvec_from_nir() 67 std::vector<PValue> ValuePool::varvec_from_nir(const nir_src& src, int num_components) in varvec_from_nir() 69 std::vector<PValue> result(num_components); in varvec_from_nir() 78 PValue ValuePool::from_nir(const nir_src& v, unsigned component, unsigned swizzled) in from_nir() 121 return PValue(new LiteralValue(literal_val[swizzled].b ? 0xffffffff : 0, component)); in from_nir() 127 return PValue(new LiteralValue(literal_val[swizzled].u32, component)); in from_nir() 131 return PValue(); in from_nir() [all …]
|
D | sfn_instruction_gds.cpp | 32 GDSInstr::GDSInstr(ESDOp op, const GPRVector& dest, const PValue& value, in GDSInstr() 33 const PValue& value2, const PValue& uav_id, int uav_base): in GDSInstr() 53 GDSInstr::GDSInstr(ESDOp op, const GPRVector& dest, const PValue& value, in GDSInstr() 54 const PValue& uav_id, int uav_base): in GDSInstr() 55 GDSInstr(op, dest, value, PValue(), uav_id, uav_base) in GDSInstr() 63 const PValue& uav_id, int uav_base): in GDSInstr() 64 GDSInstr(op, dest, PValue(), PValue(), uav_id, uav_base) in GDSInstr() 89 int rat_id, const PValue& rat_id_offset, in RatInstruction() 158 void GDSStoreTessFactor::replace_values(const ValueSet& candiates, PValue new_value) in replace_values()
|
D | sfn_instruction_base.h | 57 void remap(PValue& v); 60 PValue remap_one_registers(PValue& reg); 111 virtual void replace_values(const ValueSet& candiates, PValue new_value); 119 void add_remappable_src_value(PValue *v); 121 void add_remappable_dst_value(PValue *v); 134 std::vector<PValue*> m_mappable_src_registers; 136 std::vector<PValue*> m_mappable_dst_registers;
|
D | sfn_instruction_fetch.cpp | 37 PValue src, int offset, in FetchInstruction() 38 int buffer_id, PValue buffer_offset, in FetchInstruction() 84 const PValue src, in FetchInstruction() 98 PValue buffer_offset, in FetchInstruction() 128 PValue src, in FetchInstruction() 129 int buffer_id, PValue buffer_offset, in FetchInstruction() 165 PValue src, in FetchInstruction() 196 FetchInstruction::FetchInstruction(GPRVector dst, PValue src, int scratch_size): in FetchInstruction() 234 void FetchInstruction::replace_values(const ValueSet& candiates, PValue new_value) in replace_values() 299 LoadFromScratch::LoadFromScratch(GPRVector dst, PValue src, int scratch_size): in LoadFromScratch() [all …]
|
D | sfn_emitssboinstruction.cpp | 39 …emit_instruction(new AluInstruction(op3_muladd_uint24, m_rat_return_address.reg_i(2), PValue(new I… in load_rat_return_address() 40 … literal(256), PValue(new InlineConstValue(ALU_SRC_HW_WAVE_ID, 0)), {alu_write, alu_last_instr})); in load_rat_return_address() 124 PValue uav_id = from_nir(instr->src[0], 0); in emit_atomic() 126 PValue value = from_nir_with_fetch_constant(instr->src[1], 0); in emit_atomic() 130 PValue value2 = from_nir_with_fetch_constant(instr->src[2], 0); in emit_atomic() 149 PValue uav_id = from_nir(instr->src[0], 0); in emit_unary_atomic() 237 PValue value = from_nir_with_fetch_constant(instr->src[1], 0); in emit_atomic_add() 239 PValue uav_id = from_nir(instr->src[0], 0); in emit_atomic_add() 259 PValue uav_id = from_nir(instr->src[0], 0); in emit_atomic_inc() 271 PValue uav_id = from_nir(instr->src[0], 0); in emit_atomic_pre_dec() [all …]
|
D | sfn_shader_tcs.h | 26 PValue m_patch_id; 27 PValue m_rel_patch_id; 28 PValue m_invocation_id; 29 PValue m_primitive_id; 30 PValue m_tess_factor_base;
|
D | sfn_emittexinstruction.h | 46 PValue bias; 47 PValue comperator; 48 PValue lod; 52 PValue gather_comp; 53 PValue ms_index; 54 PValue sampler_offset; 55 PValue texture_offset;
|
D | sfn_instruction_export.h | 36 void replace_values(const ValueSet& candiates, PValue new_value) override; 42 virtual void replace_values_child(const ValueSet& candiates, PValue new_value); 81 WriteScratchInstruction(const PValue& address, const GPRVector& value, 94 void replace_values_child(const ValueSet& candiates, PValue new_value) override; 99 PValue m_address; 144 unsigned ncomp, PValue m_index); 152 void replace_values_child(const ValueSet& candiates, PValue new_value) override; 164 PValue m_index;
|
D | sfn_value.h | 136 using PValue=Value::Pointer; variable 139 inline bool operator () (PValue lhs, PValue rhs) const { in operator() 144 using ValueSet = std::set<PValue, value_less>; 186 UniformValue(uint32_t sel, uint32_t chan, PValue addr); 189 PValue addr() const {return m_addr;} in addr() 190 void reset_addr(PValue v) {m_addr = v;} in reset_addr() 197 PValue m_addr;
|
D | sfn_value_gpr.cpp | 91 GPRVector::GPRVector(std::array<PValue,4> elms): in GPRVector() argument 115 m_elms[i] = PValue(new GPRValue(sel, swizzle[i])); in GPRVector() 148 void GPRVector::set_reg_i(int i, PValue reg) in set_reg_i() 203 GPRArrayValue::GPRArrayValue(PValue value, PValue addr, GPRArray *array): in GPRArrayValue() 211 GPRArrayValue::GPRArrayValue(PValue value, GPRArray *array): in GPRArrayValue() 262 void GPRArrayValue::reset_value(PValue new_value) in reset_value() 267 void GPRArrayValue::reset_addr(PValue new_addr) in reset_addr() 283 m_values[i].set_reg_i(j, PValue(new GPRValue(base + i, j))); in GPRArray() 316 PValue GPRArray::get_indirect(unsigned index, PValue indirect, unsigned component) in get_indirect() 323 PValue v = m_values[index].reg_i(component + m_frac); in get_indirect() [all …]
|
D | sfn_shader_vertex.h | 45 PValue primitive_id() override {return m_primitive_id;} in primitive_id() 69 PValue m_vertex_id; 70 PValue m_instance_id; 71 PValue m_rel_vertex_id; 72 PValue m_primitive_id;
|
D | sfn_shader_geometry.h | 42 PValue primitive_id() override {return m_primitive_id;} in primitive_id() 64 std::array<PValue, 6> m_per_vertex_offsets; 65 PValue m_primitive_id; 66 PValue m_invocation_id; 67 PValue m_export_base;
|
D | sfn_shader_tess_eval.h | 16 PValue primitive_id() override {return m_primitive_id;} in primitive_id() 31 PValue m_tess_coord[3]; 32 PValue m_rel_patch_id; 33 PValue m_primitive_id;
|
D | sfn_shader_base.cpp | 477 AluInstruction *pred = new AluInstruction(op2_pred_setne_int, PValue(new GPRValue(0,0)), in emit_if_start() 538 PValue src = get_temp_register(); in emit_load_tcs_param_base() 730 bool ShaderFromNirProcessor::load_preloaded_value(const nir_dest& dest, int chan, PValue value, boo… in load_preloaded_value() 745 PValue address = from_nir(instr->src[1], 0, 0); in emit_store_scratch() 770 PValue address = from_nir_with_fetch_constant(instr->src[0], 0); in emit_load_scratch() 771 std::array<PValue, 4> dst_val; in emit_load_scratch() 831 v[i] = PValue(new GPRValue(sel, swizzle[i])); in vec_from_nir_with_fetch_constant() 834 v[i] = PValue(new GPRValue(sel, next_free_swizzle)); in vec_from_nir_with_fetch_constant() 875 PValue addr = from_nir_with_fetch_constant(instr->src[1], 0); in emit_load_ubo_vec4() 892 PValue bufid = from_nir(instr->src[0], 0, 0); in emit_load_ubo_vec4() [all …]
|
D | sfn_shader_base.h | 66 PValue from_nir_with_fetch_constant(const nir_src& src, unsigned component, int channel = -1); 70 bool emit_instruction(EAluOp opcode, PValue dest, 71 std::vector<PValue> src0, 96 void set_input(unsigned pos, PValue var); 117 bool load_preloaded_value(const nir_dest& dest, int chan, PValue value, 159 bool load_uniform_indirect(nir_intrinsic_instr* instr, PValue addr, int offest, int bufid); 194 std::map<unsigned, PValue> m_inputs;
|