i965/fs: Lower gl_VertexID and friends to inputs at the NIR level
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 May 2017 23:53:40 +0000 (16:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 May 2017 22:07:47 +0000 (15:07 -0700)
commitca4d1928023755d099578b7354bf763b8fa4a0f8
treecad0a2c1183a6590ad94321386f2c545874b5109
parent24e6fba50010d9d1efce0d9d3cbcf61dc3aebf0e
i965/fs: Lower gl_VertexID and friends to inputs at the NIR level

NIR calls these system values but they come in from the VF unit as
vertex data.  It's terribly convenient to just be able to treat them as
such in the back-end.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_fs_visitor.cpp
src/intel/compiler/brw_nir.c