i965/vec4: if register allocation fails, don't try to schedule.
authorPaul Berry <stereotype441@gmail.com>
Wed, 16 Oct 2013 20:13:20 +0000 (13:13 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 Oct 2013 05:00:40 +0000 (22:00 -0700)
commit89647cffb31ee1ea42d581b1053b4bb147b3e58a
tree18af2b39587e83023de173da0465a56f8fa502f2
parent8bb15813e3047820a95724e4257aa2c862eeb31a
i965/vec4: if register allocation fails, don't try to schedule.

Otherwise the scheduler would be invoked with prog_data->total_grf ==
0, causing havoc.

In a future patch, this will allow us to try compiling a geometry
shader in DUAL_OBJECT mode with spilling disabled, and then fall back
to DUAL_INSTANCED mode if that failed.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.cpp