nir: Generalize the "is per-vertex variable?" helpers and export them.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Sep 2016 05:19:07 +0000 (22:19 -0700)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 10 Nov 2016 22:17:07 +0000 (09:17 +1100)
commitad9d4a4f8d57725305ab767551bf6a89b69c11e1
tree59bbbc61306f2036ad9240f599f9df40a96ff158
parent561f2208bd6a952554e3bb043f6ff483a824a41c
nir: Generalize the "is per-vertex variable?" helpers and export them.

I want this function for nir_gather_info(), and realized it's basically
the same as the ones in nir_lower_io().

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_io.c