nir/types: add a function to get the bitsize of a base type
authorConnor Abbott <connor.w.abbott@intel.com>
Fri, 14 Aug 2015 17:36:15 +0000 (10:36 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 17 Mar 2016 10:16:33 +0000 (11:16 +0100)
commit3d37de930d04da1d067b40593b55fc248eaf7b3b
tree0d14c42128484202c8450ef9dacb4b0abfc051a8
parentc38a25af2f47c6de093c9b0ac0ccdfa9fe48007e
nir/types: add a function to get the bitsize of a base type

v2: fix it for GLSL_TYPE_SUBROUTINE (Iago)

Signed-off-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir_types.h