i965/nir: Switch on shader stage in nir_lower_outputs().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 15 Oct 2015 22:17:19 +0000 (15:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 18 Oct 2015 00:26:11 +0000 (17:26 -0700)
commitdbac0a6352053bd6106feff88d95b0fd38b82afe
tree5cea385ab3e65894bae2e083c9677b069d30d194
parent7c10af64258ca3a839d9fc1f14957ef556878b43
i965/nir: Switch on shader stage in nir_lower_outputs().

VS, GS, and FS continue doing the same thing they did before.  We can
simplify the FS code a bit because it is always scalar.

Compute shaders now assert that there are no outputs instead of doing
a loop over 0 outputs.

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