From: Rhys Perry Date: Fri, 1 May 2020 10:04:27 +0000 (+0100) Subject: aco: don't reorder barriers in the scheduler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f2fd9c62ee167cae34d34664e6bd972169a3307;p=mesa.git aco: don't reorder barriers in the scheduler Unless we're reordering it around a barrier of the same type No shader-db changes. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- diff --git a/src/amd/compiler/aco_scheduler.cpp b/src/amd/compiler/aco_scheduler.cpp index c1d4e9b3ce8..cb22491bf64 100644 --- a/src/amd/compiler/aco_scheduler.cpp +++ b/src/amd/compiler/aco_scheduler.cpp @@ -484,7 +484,10 @@ HazardResult perform_hazard_query(hazard_query *query, Instruction *instr) instr->opcode == aco_opcode::s_setprio) return hazard_fail_unreorderable; - if (query->barrier_interaction && (query->barrier_interaction & parse_barrier(instr))) + barrier_interaction bar = parse_barrier(instr); + if (query->barrier_interaction && (query->barrier_interaction & bar)) + return hazard_fail_barrier; + if (bar && query->barriers && (query->barriers & ~bar)) return hazard_fail_barrier; if (query->barriers && (query->barriers & get_barrier_interaction(instr))) return hazard_fail_barrier;