diff options
author | Eric Anholt <[email protected]> | 2011-09-07 10:32:20 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-09-08 21:34:03 -0700 |
commit | 14081695137c095f0a8430779ecb09165bec6455 (patch) | |
tree | 52a1a2f8c2a60bed95e6c792c28f704caf919702 | |
parent | 27c03cb86aa9149d001eefb3cf1e67a97f5bc886 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp index 9fd4922bb3f..1ace91fafef 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp @@ -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 |