From c68fba9bba1e68af64958669939f54bf031ef688 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 18 Jun 2020 14:23:13 +0100 Subject: [PATCH] aco: update bug workarounds for GFX10_3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_assembler.cpp | 2 +- src/amd/compiler/aco_insert_NOPs.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/compiler/aco_assembler.cpp b/src/amd/compiler/aco_assembler.cpp index 3972429a383..5e199d48e0a 100644 --- a/src/amd/compiler/aco_assembler.cpp +++ b/src/amd/compiler/aco_assembler.cpp @@ -787,7 +787,7 @@ static void fix_branches_gfx10(asm_context& ctx, std::vector& out) void fix_branches(asm_context& ctx, std::vector& out) { - if (ctx.chip_class >= GFX10) + if (ctx.chip_class == GFX10) fix_branches_gfx10(ctx, out); for (std::pair &branch : ctx.branches) { diff --git a/src/amd/compiler/aco_insert_NOPs.cpp b/src/amd/compiler/aco_insert_NOPs.cpp index fe4525b75a0..a609c18d5dc 100644 --- a/src/amd/compiler/aco_insert_NOPs.cpp +++ b/src/amd/compiler/aco_insert_NOPs.cpp @@ -804,7 +804,9 @@ void mitigate_hazards(Program *program) void insert_NOPs(Program* program) { - if (program->chip_class >= GFX10) + if (program->chip_class >= GFX10_3) + ; /* no hazards/bugs to mitigate */ + else if (program->chip_class >= GFX10) mitigate_hazards(program); else mitigate_hazards(program); -- 2.30.2