i965/vs: When failing due to lack of spilling, don't continue on.

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>
This commit is contained in:
Eric Anholt 2011-09-07 10:32:20 -07:00
parent 27c03cb86a
commit 1408169513
1 changed files with 1 additions and 0 deletions

View 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