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>
(cherry picked from commit 53800191a3a7f38e2211768d7f75ebbf5508bf69)
This commit is contained in:
Rhys Perry 2024-02-12 16:38:28 +00:00 committed by Eric Engestrom
parent db5a997626
commit c7f3e736a0
2 changed files with 2 additions and 2 deletions

View file

@ -1984,7 +1984,7 @@
"description": "aco/ra: don't initialize assigned in initializer list",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

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;