From: Rhys Perry Date: Thu, 18 Jun 2020 13:23:13 +0000 (+0100) Subject: aco: update bug workarounds for GFX10_3 X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=c68fba9bba1e68af64958669939f54bf031ef688 aco: update bug workarounds for GFX10_3 Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- 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);