Mesa (master): aco: add missing scc clobber to nir_op_unpack_32_2x16_split_y

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 16:27:09 UTC 2020


Module: Mesa
Branch: master
Commit: 839c886b346e0f68707804e17e9088d2e166e6d6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=839c886b346e0f68707804e17e9088d2e166e6d6

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Tue Apr 14 16:40:46 2020 +0100

aco: add missing scc clobber to nir_op_unpack_32_2x16_split_y

The ISA doc is inconsistent whether this instruction writes SCC. It does.

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4552>

---

 src/amd/compiler/aco_instruction_selection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index d1b9f9238d7..8552b06bf89 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -2700,7 +2700,7 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr)
       if (dst.type() == RegType::vgpr) {
          bld.pseudo(aco_opcode::p_split_vector, bld.def(dst.regClass()), Definition(dst), get_alu_src(ctx, instr->src[0]));
       } else {
-         bld.sop2(aco_opcode::s_bfe_u32, Definition(dst), get_alu_src(ctx, instr->src[0]), Operand(uint32_t(16 << 16 | 16)));
+         bld.sop2(aco_opcode::s_bfe_u32, Definition(dst), bld.def(s1, scc), get_alu_src(ctx, instr->src[0]), Operand(uint32_t(16 << 16 | 16)));
       }
       break;
    case nir_op_pack_32_2x16_split: {



More information about the mesa-commit mailing list