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 <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4133>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4133>
This commit is contained in:
Rhys Perry 2020-03-10 15:07:19 +00:00 committed by Marge Bot
parent cc320ef9af
commit 85d05b3fd7

View file

@ -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;