mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
nv50/ir: fix memory corruption when spilling and redoing RA
When RA fails, and we spill, we have to clean everything up before doing
RA again. We were forgetting to reset the hi/lo linked lists - at
least the hi list is guaranteed to still have pointers to now-deleted
RIG nodes.
Signed-off-by: Karol Herbst <nouveau@karolherbst.de>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 19ae5de981)
This commit is contained in:
parent
761e3fda6e
commit
045e269a92
1 changed files with 3 additions and 0 deletions
|
|
@ -1499,6 +1499,9 @@ GCRA::cleanup(const bool success)
|
|||
|
||||
delete[] nodes;
|
||||
nodes = NULL;
|
||||
hi.next = hi.prev = &hi;
|
||||
lo[0].next = lo[0].prev = &lo[0];
|
||||
lo[1].next = lo[1].prev = &lo[1];
|
||||
}
|
||||
|
||||
Symbol *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue