r600/sfn: allow more copy-propagate with dest chan fixed.
authorGert Wollny <gert.wollny@collabora.com>
Mon, 5 Dec 2022 16:03:45 +0000 (17:03 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Dec 2022 08:26:30 +0000 (08:26 +0000)
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20205>

src/gallium/drivers/r600/sfn/sfn_instr_alu.cpp

index a9e1b7e..fdca6b1 100644 (file)
@@ -326,6 +326,7 @@ AluInstr::can_propagate_src() const
 
    if (m_dest->pin() == pin_chan)
       return src_reg->pin() == pin_none ||
+             src_reg->pin() == pin_free ||
              (src_reg->pin() == pin_chan && src_reg->chan() == m_dest->chan());
 
    return m_dest->pin() == pin_none || m_dest->pin() == pin_free;