i965: Move postprocess_nir to codegen time
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Nov 2015 18:04:43 +0000 (10:04 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Nov 2015 19:02:15 +0000 (11:02 -0800)
commitce767bbdfff7c2a7829b652c111a11eb9ddba026
treede930008c2232086b3915d44088a89eae3ea87eb
parent9cf108193b61c342c94c4cd980c4b403638e1051
i965: Move postprocess_nir to codegen time

This allows us to insert NIR passes between initial NIR compilation and
optimization (link time) and actual backend code-gen.  In particular, it
will allow us to do shader variants in NIR and share some of that shader
variant code between backends.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp