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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user