aco: fix copy of uninitialized boolean

This should be harmless but UBSan seems to complain.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6013>
This commit is contained in:
Rhys Perry 2020-04-03 17:44:47 +01:00 committed by Marge Bot
parent 40b65a86a4
commit c11c4d8d4c
1 changed files with 2 additions and 3 deletions

View File

@ -293,7 +293,8 @@ struct wait_ctx {
max_exp_cnt(6),
max_lgkm_cnt(program_->chip_class >= GFX10 ? 62 : 14),
max_vs_cnt(program_->chip_class >= GFX10 ? 62 : 0),
unordered_events(event_smem | (program_->chip_class < GFX10 ? event_flat : 0)) {}
unordered_events(event_smem | (program_->chip_class < GFX10 ? event_flat : 0)),
collect_statistics(program_->collect_statistics) {}
bool join(const wait_ctx* other, bool logical)
{
@ -847,8 +848,6 @@ void handle_block(Program *program, Block& block, wait_ctx& ctx)
wait_imm queued_imm;
ctx.collect_statistics = program->collect_statistics;
for (aco_ptr<Instruction>& instr : block.instructions) {
bool is_wait = !parse_wait_instr(ctx, instr.get()).empty();