From e7a7d9ea2e2e48171fad131a7bfa7576e02ea4e0 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 1 May 2025 17:04:38 +0100 Subject: [PATCH] aco: fix wait_entry::join() when changing vmem_types This is a bitmask, not a boolean. No fossil-db changes. Signed-off-by: Rhys Perry Reviewed-by: Georg Lehmann Part-of: --- src/amd/compiler/aco_insert_waitcnt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_insert_waitcnt.cpp b/src/amd/compiler/aco_insert_waitcnt.cpp index 62cbaaadf30..af9609cf65f 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -86,7 +86,7 @@ struct wait_entry { bool join(const wait_entry& other) { bool changed = (other.events & ~events) || (other.counters & ~counters) || - (other.wait_on_read && !wait_on_read) || (other.vmem_types & !vmem_types) || + (other.wait_on_read && !wait_on_read) || (other.vmem_types & ~vmem_types) || (!other.logical && logical); events |= other.events; counters |= other.counters;