From 0130346adbce7e6b2422429887fc46c76806d845 Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 4 Oct 2012 10:53:47 +0200 Subject: randrproto mesa pixman git update 4 oct 2012 randrproto: 4fcbd8584e55ff789522a38a41a33c34446d1455 mesa: 185d6df3c10a7ff5defe163af614bfc41088910b pixman: 2e17b6dd4ee7c32684fb7ffc70d3ad3ebf7cb2ef --- mesalib/src/mesa/program/register_allocate.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mesalib/src/mesa/program') diff --git a/mesalib/src/mesa/program/register_allocate.c b/mesalib/src/mesa/program/register_allocate.c index 97d4e331c..88793dbdc 100644 --- a/mesalib/src/mesa/program/register_allocate.c +++ b/mesalib/src/mesa/program/register_allocate.c @@ -555,6 +555,13 @@ ra_get_best_spill_node(struct ra_graph *g) if (cost <= 0.0) continue; + /* Only consider registers for spilling if they are still in the + * interference graph (those on the stack have already been proven to be + * allocatable without spilling). + */ + if (g->nodes[n].in_stack) + continue; + benefit = ra_get_spill_benefit(g, n); if (benefit / cost > best_benefit) { -- cgit v1.2.3