nir/info: Move the GS info into a stage-specific info union
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 8 Oct 2015 22:36:51 +0000 (15:36 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Oct 2015 15:47:03 +0000 (08:47 -0700)
commitfe399f3a69689a78ca4a5fb5a6b76435adcd41e5
tree7ce4f5f20efd8a73779c0dd1796935fdd2ab577a
parent16619477bc800d32b5bf2f38dd544960cf66c284
nir/info: Move the GS info into a stage-specific info union

This way we can have other stage-specific info without consuming too much
extra space.  While we're at it, we make sure that the geometry info is
only set if we're actually a goemetry shader.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/glsl/nir/glsl_to_nir.cpp
src/glsl/nir/nir.h