[Mesa-dev] [PATCH] nv50/ir: fix minor memory corpution when RA does another round
Karol Herbst
nouveau at karolherbst.de
Tue Jan 26 05:36:04 PST 2016
From: Karol Herbst <git at karolherbst.de>
sometimes an application might crash with a message like this:
ERROR: no viable spill candidates left
this is due to a memory corruption wich only manifest when there is another RA round
this fixes this
Signed-off-by: Karol Herbst <nouveau at karolherbst.de>
---
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
index cd8c42c..de39be8 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
@@ -1544,6 +1544,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 *
--
2.7.0
More information about the mesa-dev
mailing list