aco/ra: don't initialize assigned in initializer list

According to Valgrind, vcc/m0 are uninitialized and this fixes it.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27583>
This commit is contained in:
Rhys Perry 2024-02-12 16:38:28 +00:00 committed by Marge Bot
parent 30b7771aa9
commit 53800191a3

View file

@ -62,7 +62,7 @@ struct assignment {
};
uint32_t affinity = 0;
assignment() = default;
assignment(PhysReg reg_, RegClass rc_) : reg(reg_), rc(rc_), assigned(-1) {}
assignment(PhysReg reg_, RegClass rc_) : reg(reg_), rc(rc_) { assigned = true; }
void set(const Definition& def)
{
assigned = true;