r600/sfn: make pin_dest_to_chan a virtual function

To simplify the scheduling we need the method to be callable for all
instruction types.

v2: remove now useless override in ExportInstr

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37096>
This commit is contained in:
Gert Wollny
2025-08-31 23:16:52 +02:00
committed by Marge Bot
parent 1dd263ee68
commit 11c91aa5fb
4 changed files with 4 additions and 6 deletions
+3 -1
View File
@@ -127,6 +127,8 @@ public:
virtual AluGroup *as_alu_group() { return nullptr;}
virtual void pin_dest_to_chan() {}
protected:
@@ -338,7 +340,7 @@ public:
void update_indirect_addr(PRegister old_reg, PRegister addr) override;
void pin_dest_to_chan();
void pin_dest_to_chan() override;
protected:
InstrWithVectorResult(const InstrWithVectorResult& orig);
+1 -1
View File
@@ -102,7 +102,7 @@ public:
int dest_chan() const { return m_dest ? m_dest->chan() : m_fallback_chan; }
void pin_dest_to_chan();
void pin_dest_to_chan() override;
const VirtualValue *psrc(unsigned i) const { return i < m_src.size() ? m_src[i] : nullptr; }
PVirtualValue psrc(unsigned i) { return i < m_src.size() ? m_src[i] : nullptr; }
@@ -228,8 +228,6 @@ public:
uint8_t allowed_src_chan_mask() const override;
void pin_dest_to_chan() {}
private:
bool do_ready() const override;
void do_print(std::ostream& os) const override;
@@ -41,8 +41,6 @@ public:
void update_indirect_addr(PRegister old_reg, PRegister addr) override;
void pin_dest_to_chan() {}
private:
static bool emit_atomic_read(nir_intrinsic_instr *intr, Shader& shader);
static bool emit_atomic_op2(nir_intrinsic_instr *intr, Shader& shader);