nir: Add intrinsics for SYSTEM_VALUE_BASE_VERTEX and VERTEX_ID_ZERO_BASE
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Mar 2015 08:58:54 +0000 (01:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 15:29:48 +0000 (08:29 -0700)
commit2c79f6f9c339448b5361f080e8f373cea5de3179
tree8aad30900656ef20e75c86359c2ffb2d8aad547e
parentb9dea9bc45299f19c445170a4cac27810547de00
nir: Add intrinsics for SYSTEM_VALUE_BASE_VERTEX and VERTEX_ID_ZERO_BASE

Ian and I added these around the time Connor was developing NIR.  Now
that both exist, we should make them work together!

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_intrinsics.h
src/glsl/nir/nir_lower_system_values.c