/third_party/mesa3d/src/gallium/drivers/r600/sfn/tests/ |
D | sfn_instr_test.cpp | 394 TexInstr tex(TexInstr::sample, in TEST_F() 401 EXPECT_EQ(tex.opcode(), TexInstr::sample); in TEST_F() 420 EXPECT_FALSE(tex.has_tex_flag(TexInstr::x_unnormalized)); in TEST_F() 421 EXPECT_FALSE(tex.has_tex_flag(TexInstr::y_unnormalized)); in TEST_F() 422 EXPECT_FALSE(tex.has_tex_flag(TexInstr::z_unnormalized)); in TEST_F() 423 EXPECT_FALSE(tex.has_tex_flag(TexInstr::w_unnormalized)); in TEST_F() 425 tex.set_tex_flag(TexInstr::x_unnormalized); in TEST_F() 426 EXPECT_TRUE(tex.has_tex_flag(TexInstr::x_unnormalized)); in TEST_F() 427 EXPECT_FALSE(tex.has_tex_flag(TexInstr::y_unnormalized)); in TEST_F() 428 EXPECT_FALSE(tex.has_tex_flag(TexInstr::z_unnormalized)); in TEST_F() [all …]
|
D | sfn_instrfromstring_test.cpp | 343 TexInstr expect(TexInstr::sample, RegisterVec4(1000), {0,1,2,3}, RegisterVec4(2000), 1, 10); in TEST_F() 351 TexInstr expect(TexInstr::ld, RegisterVec4(1001), {0,1,2,3}, RegisterVec4(2002), 7, 27); in TEST_F() 360 TexInstr expect(TexInstr::sample, RegisterVec4(1001), {0,1,2,3}, RegisterVec4(2002), 2, 27); in TEST_F() 372 TexInstr expect(TexInstr::gather4, RegisterVec4(1001), {0,1,2,3}, RegisterVec4(2002), 27, 7); in TEST_F() 380 TexInstr expect(TexInstr::gather4, RegisterVec4(1001), {0,1,2,3}, RegisterVec4(2002), 27, 7); in TEST_F() 389 TexInstr expect(TexInstr::sample, RegisterVec4(1001), {0,1,2,3}, RegisterVec4(2002), 27, 7); in TEST_F()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_instr_tex.cpp | 36 TexInstr::TexInstr(Opcode op, const RegisterVec4& dest, in TexInstr() function in r600::TexInstr 55 void TexInstr::accept(ConstInstrVisitor& visitor) const in accept() 60 void TexInstr::accept(InstrVisitor& visitor) in accept() 65 void TexInstr::set_offset(unsigned index, int32_t val) in set_offset() 71 int TexInstr::get_offset(unsigned index) const in get_offset() 77 void TexInstr::set_gather_comp(int cmp) in set_gather_comp() 82 bool TexInstr::is_equal_to(const TexInstr& lhs) const in is_equal_to() 112 bool TexInstr::propagate_death() in propagate_death() 118 bool TexInstr::do_ready() const in do_ready() 135 void TexInstr::do_print(std::ostream& os) const in do_print() [all …]
|
D | sfn_instr_tex.h | 37 class TexInstr : public InstrWithVectorResult { 102 TexInstr(Opcode op, const RegisterVec4& dest, 107 TexInstr(const TexInstr& orig) = delete; 108 TexInstr(const TexInstr&& orig) = delete; 109 TexInstr& operator =(const TexInstr& orig) = delete; 110 TexInstr& operator =(const TexInstr&& orig) = delete; 135 bool is_equal_to(const TexInstr& lhs) const; 175 void add_prepare_instr(TexInstr *ir) {m_prepare_instr.push_back(ir);}; in add_prepare_instr() 188 std::list<TexInstr *> m_prepare_instr;
|
D | sfn_shader_fs.cpp | 848 auto tex = new TexInstr(TexInstr::get_gradient_h, grad, {0, 1, 7, 7}, interp, 0, 0); in load_barycentric_at_sample() 849 tex->set_tex_flag(TexInstr::grad_fine); in load_barycentric_at_sample() 850 tex->set_tex_flag(TexInstr::x_unnormalized); in load_barycentric_at_sample() 851 tex->set_tex_flag(TexInstr::y_unnormalized); in load_barycentric_at_sample() 852 tex->set_tex_flag(TexInstr::z_unnormalized); in load_barycentric_at_sample() 853 tex->set_tex_flag(TexInstr::w_unnormalized); in load_barycentric_at_sample() 856 tex = new TexInstr(TexInstr::get_gradient_v, grad, {7,7,0,1}, interp, 0, 0); in load_barycentric_at_sample() 857 tex->set_tex_flag(TexInstr::x_unnormalized); in load_barycentric_at_sample() 858 tex->set_tex_flag(TexInstr::y_unnormalized); in load_barycentric_at_sample() 859 tex->set_tex_flag(TexInstr::z_unnormalized); in load_barycentric_at_sample() [all …]
|
D | sfn_optimizer.cpp | 73 void visit(TexInstr *instr) override; 173 void DCEVisitor::visit(TexInstr *instr) in visit() 246 void visit(TexInstr *instr) override; 274 void visit(TexInstr *instr) override; 387 void CopyPropFwdVisitor::visit(TexInstr *instr) in visit() 467 void CopyPropBackVisitor::visit(TexInstr *instr) in visit() 490 void visit(TexInstr *instr) override; 521 void SimplifySourceVecVisitor::visit(TexInstr *instr) in visit() 523 if (instr->opcode() != TexInstr::get_resinfo) { in visit()
|
D | sfn_instr.h | 43 class TexInstr; variable 286 virtual void visit(const TexInstr& instr) = 0; 307 virtual void visit(TexInstr *instr) = 0;
|
D | sfn_instrfactory.cpp | 79 result = TexInstr::from_string(is, m_value_factory); in from_string() 128 return TexInstr::from_nir(nir_instr_as_tex(instr), shader); in from_nir()
|
D | sfn_assembler.cpp | 55 void visit(const TexInstr& instr) override; 429 void AssamblerVisitor::visit(const TexInstr& tex_instr) in visit() 461 tex.coord_type_x = !tex_instr.has_tex_flag(TexInstr::x_unnormalized); in visit() 462 tex.coord_type_y = !tex_instr.has_tex_flag(TexInstr::y_unnormalized); in visit() 463 tex.coord_type_z = !tex_instr.has_tex_flag(TexInstr::z_unnormalized); in visit() 464 tex.coord_type_w = !tex_instr.has_tex_flag(TexInstr::w_unnormalized); in visit() 477 if (tex_instr.opcode() == TexInstr::get_gradient_h || in visit() 478 tex_instr.opcode() == TexInstr::get_gradient_v) in visit() 479 tex.inst_mod = tex_instr.has_tex_flag(TexInstr::grad_fine) ? 1 : 0; in visit()
|
D | sfn_scheduler.cpp | 61 void visit(TexInstr *instr) override { in visit() 133 std::list<TexInstr *> tex; 193 std::list<TexInstr *> tex_ready; 881 struct type_char<TexInstr> {
|
D | sfn_instr_mem.cpp | 816 shader.emit_instruction(new TexInstr(TexInstr::get_resinfo, dest, {0,1,7,3}, in emit_image_size() 856 shader.emit_instruction(new TexInstr(TexInstr::get_resinfo, dest, {0,1,2,3}, in emit_image_size()
|
D | sfn_instr.cpp | 455 DECLARE_MEMBER(TexInstr); 483 void visit(const TexInstr& instr) override { in visit()
|
D | sfn_liverangeevaluator.cpp | 50 void visit(TexInstr *instr) override; 250 void LiveRangeInstrVisitor::visit(TexInstr *instr) in visit()
|
D | sfn_peephole.cpp | 36 void visit(TexInstr *instr) override {(void)instr;}; in visit()
|
D | sfn_instr_alu.cpp | 1140 static bool emit_tex_fdd(const nir_alu_instr& alu, TexInstr::Opcode opcode, bool fine, Shader& shad… 1403 case nir_op_fddx_coarse: return emit_tex_fdd(*alu, TexInstr::get_gradient_h, false, shader); in from_nir() 1404 case nir_op_fddx_fine: return emit_tex_fdd(*alu, TexInstr::get_gradient_h, true, shader); in from_nir() 1406 case nir_op_fddy_coarse: return emit_tex_fdd(*alu,TexInstr::get_gradient_v, false, shader); in from_nir() 1407 case nir_op_fddy_fine: return emit_tex_fdd(*alu, TexInstr::get_gradient_v, true, shader); in from_nir() 2486 static bool emit_tex_fdd(const nir_alu_instr& alu, TexInstr::Opcode opcode, bool fine, Shader& shad… in emit_tex_fdd() 2517 auto tex = new TexInstr(opcode, dst, dst_swz, tmp, 0, R600_MAX_CONST_BUFFERS); in emit_tex_fdd() 2520 tex->set_tex_flag(TexInstr::grad_fine); in emit_tex_fdd()
|
D | sfn_instr_alu.h | 203 void visit(TexInstr *instr) override {(void)instr;} in visit()
|
D | sfn_shader.h | 358 void visit(TexInstr *instr) override {(void) instr;} in visit()
|