nir: Add src/dest num_components helpers
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Mar 2018 04:44:51 +0000 (21:44 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 31 Mar 2018 00:20:27 +0000 (17:20 -0700)
commit956f17395bfcf7f8ce9dd5ac9fd14a13e86f3a8f
tree8f25edb4a57f7eb81651e250f8cdd985463b0142
parentbebf758c4925d828b3df5e0f4168abc56e71859d
nir: Add src/dest num_components helpers

We already have these for bit_size

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir.h