mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
30b7771aa9
commit
53800191a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue