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:
parent
40b65a86a4
commit
c11c4d8d4c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue