nir: glsl_get_bit_size() should take glsl_type
authorRob Clark <robclark@freedesktop.org>
Wed, 11 May 2016 19:05:09 +0000 (15:05 -0400)
committerRob Clark <robclark@freedesktop.org>
Thu, 12 May 2016 17:39:40 +0000 (13:39 -0400)
commit9d3cc80b752b236bc51b78a3d99920748a1a230a
treec518c99153ecd2af941e400d47383ac90e9632cf
parentb19cff1639f9c6e3074d11f1199807603046ea4b
nir: glsl_get_bit_size() should take glsl_type

It's what all the call-sites once, so gets rid of a bunch of inlined
glsl_get_base_type() at the call-sites.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/glsl_to_nir.cpp
src/compiler/nir/nir.c
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_lower_locals_to_regs.c
src/compiler/nir/nir_lower_var_copies.c
src/compiler/nir/nir_lower_vars_to_ssa.c
src/compiler/nir_types.h
src/compiler/spirv/spirv_to_nir.c
src/compiler/spirv/vtn_variables.c