aco/insert_exec_mask: set Exact mode after p_discard_if when necessary

Fixes: 5e9df85b1a ('aco: optimize discard_if when WQM is not needed afterwards')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25038>
(cherry picked from commit 0907b53740)
This commit is contained in:
Daniel Schürmann 2023-09-04 09:46:25 +02:00 committed by Eric Engestrom
parent 84b7f700bb
commit dbbe743743
2 changed files with 2 additions and 1 deletions

View file

@ -1678,7 +1678,7 @@
"description": "aco/insert_exec_mask: set Exact mode after p_discard_if when necessary",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "5e9df85b1a4504c5b4162e77e139056dc80accc6"
},

View file

@ -577,6 +577,7 @@ process_instructions(exec_ctx& ctx, Block* block, std::vector<aco_ptr<Instructio
assert(ctx.info[block->index].exec[0].second == (mask_type_exact | mask_type_global));
current_exec = get_exec_op(ctx.info[block->index].exec.back().first);
ctx.info[block->index].exec[0].first = Operand(bld.lm);
state = Exact;
}
}