From 85d05b3fd713d67aa764dff60467a896a7aa1011 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 10 Mar 2020 15:07:19 +0000 Subject: [PATCH] aco: fix uninitialized data error in waitcnt pass MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Shouldn't create any incorrect waitcnts but may create suboptimial waitcnts in rare cases. Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Tested-by: Marge Bot 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 e0184993c6b..254eb97d151 100644 --- a/src/amd/compiler/aco_insert_waitcnt.cpp +++ b/src/amd/compiler/aco_insert_waitcnt.cpp @@ -247,7 +247,7 @@ struct wait_ctx { bool pending_s_buffer_store = false; /* GFX10 workaround */ wait_imm barrier_imm[barrier_count]; - uint16_t barrier_events[barrier_count]; /* use wait_event notion */ + uint16_t barrier_events[barrier_count] = {}; /* use wait_event notion */ std::map gpr_map; -- 2.30.2