aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-03-10 15:07:19 +0000
committerMarge Bot <[email protected]>2020-03-12 11:46:56 +0000
commit85d05b3fd713d67aa764dff60467a896a7aa1011 (patch)
tree08bfcbc9079a1e9e650a3b9543cfbf4b3b3a7bbc /src
parentcc320ef9af6b84b6a1f275261b071d05c0ee6a62 (diff)
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 <[email protected]> Reviewed-by: Daniel Schürmann <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4133> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4133>
Diffstat (limited to 'src')
-rw-r--r--src/amd/compiler/aco_insert_waitcnt.cpp2
1 files changed, 1 insertions, 1 deletions
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<PhysReg,wait_entry> gpr_map;