mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
aco: fix assertion in insert_exec_mask pass
Fixes: a56ddca4e8 ('aco: make all exec accesses non-temporaries ')
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9047>
This commit is contained in:
parent
ddce1ec5f5
commit
fc6b5be666
1 changed files with 5 additions and 2 deletions
|
|
@ -579,8 +579,11 @@ unsigned add_coupling_code(exec_ctx& ctx, Block* block,
|
|||
for (unsigned i = 0; i < num_exec_masks; i++) {
|
||||
/* skip trivial phis */
|
||||
if (ctx.info[preds[0]].exec[i].first == ctx.info[preds[1]].exec[i].first) {
|
||||
assert(ctx.info[preds[0]].exec[i].second == ctx.info[preds[1]].exec[i].second);
|
||||
ctx.info[idx].exec.emplace_back(ctx.info[preds[0]].exec[i]);
|
||||
Temp t = ctx.info[preds[0]].exec[i].first;
|
||||
/* discard/demote can change the state of the current exec mask */
|
||||
assert(!t.id() || ctx.info[preds[0]].exec[i].second == ctx.info[preds[1]].exec[i].second);
|
||||
uint8_t mask = ctx.info[preds[0]].exec[i].second & ctx.info[preds[1]].exec[i].second;
|
||||
ctx.info[idx].exec.emplace_back(t, mask);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue