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>
This commit is contained in:
Georg Lehmann
2024-07-28 13:55:29 +02:00
committed by Marge Bot
parent 0acc31a001
commit 6da7bd842c

View File

@@ -4288,6 +4288,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;