summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-05-11 15:05:09 -0400
committerRob Clark <[email protected]>2016-05-12 13:39:40 -0400
commit9d3cc80b752b236bc51b78a3d99920748a1a230a (patch)
treec518c99153ecd2af941e400d47383ac90e9632cf /src/compiler/nir/nir.c
parentb19cff1639f9c6e3074d11f1199807603046ea4b (diff)
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 <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r--src/compiler/nir/nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 867a43cefbd..71adcb36267 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -694,7 +694,7 @@ nir_deref_get_const_initializer_load(nir_shader *shader, nir_deref_var *deref)
tail = tail->child;
}
- unsigned bit_size = glsl_get_bit_size(glsl_get_base_type(tail->type));
+ unsigned bit_size = glsl_get_bit_size(tail->type);
nir_load_const_instr *load =
nir_load_const_instr_create(shader, glsl_get_vector_elements(tail->type),
bit_size);