nir: Add helpers for getting input/output intrinsic sources.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 8 Nov 2015 06:35:33 +0000 (22:35 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 13 Nov 2015 23:15:46 +0000 (15:15 -0800)
commit26f9469a46585f64b24fb1037aaae7c757a5e6e1
tree962a004e13f5d893097e6a2c905620189ea6e5b7
parentd12bde0944d1d69401ef1d854aa0ab92b5a6af54
nir: Add helpers for getting input/output intrinsic sources.

With the many variants of IO intrinsics, particular sources are often in
different locations.  It's convenient to say "give me the indirect
offset" or "give me the vertex index" and have it just work, without
having to think about exactly which kind of intrinsic you have.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_io.c