nv50/ir: fix memory corruption when spilling and redoing RA
authorKarol Herbst <git@karolherbst.de>
Tue, 26 Jan 2016 13:36:04 +0000 (14:36 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 26 Jan 2016 22:55:06 +0000 (17:55 -0500)
commit19ae5de981e014e1b366b4652e14eb1ea0421574
tree7a4ab4bd4fda35708c9693ca36f7f739dc24f224
parentd580a979a4bcc3b55b88bc407ab502ccc4e50034
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
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp