i965/nir: Do lower_io late for fragment shaders
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Feb 2016 21:23:45 +0000 (13:23 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Feb 2016 23:55:59 +0000 (15:55 -0800)
commitb3cb6e78aa219ad73c145a25ee1bb48fd8b025d0
treeaa6c103d2e1957cf11c63f5dedb0f1d640e3d8a2
parent7428e6f86ab5022ba07f562e124642245c63a72f
i965/nir: Do lower_io late for fragment shaders

The Vulkan driver wants to be able to delete fragment outputs that are
beyond key.nr_color_regions; this is a lot easier if we lower outputs at
specialization time rather than link time.

(Rationale added to commit message by Ken)

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