From: Rhys Perry Date: Tue, 10 Mar 2020 15:07:19 +0000 (+0000) Subject: aco: fix uninitialized data error in waitcnt pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85d05b3fd713d67aa764dff60467a896a7aa1011;p=mesa.git aco: fix uninitialized data error in waitcnt pass 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: --- 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;