aco/optimizer: update temp_rc when converting to uniform bool alu

Cc: mesa-stable

Reviewed-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30399>
(cherry picked from commit 6da7bd842c)
This commit is contained in:
Georg Lehmann 2024-07-28 13:55:29 +02:00 committed by Eric Engestrom
parent b2c4eb582e
commit 9185eaf12d
2 changed files with 2 additions and 1 deletions

View file

@ -74,7 +74,7 @@
"description": "aco/optimizer: update temp_rc when converting to uniform bool alu",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -4734,6 +4734,7 @@ to_uniform_bool_instr(opt_ctx& ctx, aco_ptr<Instruction>& instr)
}
instr->definitions[0].setTemp(Temp(instr->definitions[0].tempId(), s1));
ctx.program->temp_rc[instr->definitions[0].tempId()] = s1;
assert(instr->operands[0].regClass() == s1);
assert(instr->operands[1].regClass() == s1);
return true;