i965/vs: When failing due to lack of spilling, don't continue on.
authorEric Anholt <eric@anholt.net>
Wed, 7 Sep 2011 17:32:20 +0000 (10:32 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 9 Sep 2011 04:34:03 +0000 (21:34 -0700)
Fixes assertion failure from double-free in oglc
glsl-arrayobject constructor.declaration.structure

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp

index 9fd4922bb3fd76df0b47b2874aa96e783e790994..1ace91fafef5c46f3e00a6f19a59a1d54094f731 100644 (file)
@@ -205,6 +205,7 @@ vec4_visitor::reg_allocate()
    if (!ra_allocate_no_spills(g)) {
       ralloc_free(g);
       fail("No register spilling support yet\n");
+      return;
    }
 
    /* Get the chosen virtual registers for each node, and map virtual