i965/fs: Refactor fs_visitor::nir_setup_inputs().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 08:58:56 +0000 (01:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 15:29:48 +0000 (08:29 -0700)
commita5c4e7fcf52c048c02e4ee14413a574b4ff3695e
tree2ecd6eee746a37e2739c5bec58f0ddca4ffd4604
parent34628a838aa96643be02cd23eb55af50025dd422
i965/fs: Refactor fs_visitor::nir_setup_inputs().

No functional change.  In preparation for supporting vertex shaders,
this adds a switch statement on shader stage (since vertex attributes
and fragment shader varyings will need different handling).  It also
renames "varying" to "input", to be more general.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp