i965: Don't try to emit code if we failed register allocation.

This commit is contained in:
Eric Anholt 2010-10-01 17:18:07 -07:00
parent 6397addd61
commit 64a9fc3fc1
1 changed files with 2 additions and 1 deletions

View File

@ -2808,7 +2808,8 @@ brw_wm_fs_emit(struct brw_context *brw, struct brw_wm_compile *c)
v.assign_regs();
}
v.generate_code();
if (!v.fail)
v.generate_code();
assert(!v.fail); /* FINISHME: Cleanly fail, tested at link time, etc. */