i965: Switch on shader stage in nir_setup_outputs().
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 17:43:23 +0000 (10:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 Jul 2015 23:56:35 +0000 (16:56 -0700)
commit308c0bf74307af0f3385cdcbb00aa0534ec3e5da
tree3412536e60be7df3ddeade815792982209da8924
parent04a57a7ee92403a1d9e01eada69f1ab133fc0b47
i965: Switch on shader stage in nir_setup_outputs().

Adding new shader stages to a switch statement is less confusing than an
if-else-if ladder where all but the first case are fragment shader
specific (but don't claim to be).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp