i965/nir: Lower to registers a bit later.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 08:58:53 +0000 (01:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 15:29:48 +0000 (08:29 -0700)
commitb9dea9bc45299f19c445170a4cac27810547de00
treeee95eb71ae4ae1e0f854f358924992b21eac6f96
parent1f0067811c059fb3b284a2169e94fbdec7a4b909
i965/nir: Lower to registers a bit later.

We can't safely call nir_optimize() with register present, since several
passes called in the loop can't handle registers, and will fail asserts.

Notably, nir_lower_vec_alus() and nir_opt_algebraic() really don't want
registers.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp