i965: Move optimizations from brw_nir_lower_io to brw_postprocess_nir.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Feb 2016 05:40:37 +0000 (21:40 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Feb 2016 23:55:59 +0000 (15:55 -0800)
commit51f87979934100af8c40cfa17f670bc38417ddc0
treec78590a446b1bbb0d9bb394c69ccf6beda7f1793
parentdcd4a841e9096b988ea3ca2779e7c8b1ca5e5747
i965: Move optimizations from brw_nir_lower_io to brw_postprocess_nir.

This simplifies things.  Every caller of brw_nir_lower_io() immediately
calls brw_postprocess_nir().  The only real change this will have is
that we get an extra brw_nir_optimize() call when compiling compute
shaders, but that seems fine.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_nir.c