From: Eric Anholt Date: Sat, 2 Oct 2010 00:18:07 +0000 (-0700) Subject: i965: Don't try to emit code if we failed register allocation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64a9fc3fc15603a8e25d0e1146fe5da5a5bde55b;p=mesa.git i965: Don't try to emit code if we failed register allocation. --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index ddf96ca22dd..dd2af2bd1d3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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. */