From 51bc11abc206ae5ea0946f5a79c68527701c24e0 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 20 Jul 2020 17:19:40 +0100 Subject: [PATCH] aco: always set FI on GFX10 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit bounds_ctrl is set to true by default which works around some game bugs, but that isn't enough on GFX10. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/compiler/aco_assembler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index c36e8c9b51e..8d77951feff 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -622,6 +622,8 @@ void emit_instruction(asm_context& ctx, std::vector& out, Instruction* encoding |= dpp->neg[1] << 22; encoding |= dpp->abs[0] << 21; encoding |= dpp->neg[0] << 20; + if (ctx.chip_class >= GFX10) + encoding |= 1 << 18; /* set Fetch Inactive to match GFX9 behaviour */ encoding |= dpp->bound_ctrl << 19; encoding |= dpp->dpp_ctrl << 8; encoding |= (0xFF) & dpp_op.physReg(); -- 2.30.2