r600/sfn: Allow copy prop into GDS sources values

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20205>
This commit is contained in:
Gert Wollny
2022-12-05 16:29:27 +01:00
committed by Marge Bot
parent 68ef0d8448
commit 5dc35cf1d1
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ public:
bool do_ready() const override;
auto opcode() const { return m_op; }
auto src() const { return m_src; }
auto& src() { return m_src; }
auto& src() const { return m_src; }
const auto& dest() const { return m_dest; }
auto& dest() { return m_dest; }
@@ -32,6 +32,7 @@
#include "sfn_instr_export.h"
#include "sfn_instr_fetch.h"
#include "sfn_instr_lds.h"
#include "sfn_instr_mem.h"
#include "sfn_instr_tex.h"
#include "sfn_peephole.h"
#include "sfn_valuefactory.h"
@@ -251,7 +252,7 @@ public:
void visit(StreamOutInstr *instr) override { (void)instr; }
void visit(MemRingOutInstr *instr) override { (void)instr; }
void visit(EmitVertexInstr *instr) override { (void)instr; }
void visit(GDSInstr *instr) override { (void)instr; };
void visit(GDSInstr *instr) override;
void visit(WriteTFInstr *instr) override { (void)instr; };
void visit(RatInstr *instr) override { (void)instr; };
@@ -412,6 +413,11 @@ CopyPropFwdVisitor::visit(TexInstr *instr)
propagate_to(instr->src(), instr);
}
void CopyPropFwdVisitor::visit(GDSInstr *instr)
{
propagate_to(instr->src(), instr);
}
void
CopyPropFwdVisitor::visit(ExportInstr *instr)
{