i965/nir: Split shader optimization and lowering into three stages
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Nov 2015 17:40:51 +0000 (09:40 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Nov 2015 19:02:15 +0000 (11:02 -0800)
commit9cf108193b61c342c94c4cd980c4b403638e1051
tree34d541e6fcd6917210f9696341ca12ea5a98dedb
parent9d703de85a7bdd6ae767aedd7690cb82794cb90a
i965/nir: Split shader optimization and lowering into three stages

At the moment, brw_create_nir just calls the three stages in sequence so
there's not much difference.  Soon, however, we will want to start doing
variants in NIR at which point the postprocessing step will have to move
from shader create time to codegen time.

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