diff options
author | Rob Clark <[email protected]> | 2016-05-11 15:05:09 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-12 13:39:40 -0400 |
commit | 9d3cc80b752b236bc51b78a3d99920748a1a230a (patch) | |
tree | c518c99153ecd2af941e400d47383ac90e9632cf /src/compiler/spirv/vtn_variables.c | |
parent | b19cff1639f9c6e3074d11f1199807603046ea4b (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/spirv/vtn_variables.c')
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index d2f174c90b9..bbe1166aff0 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -191,7 +191,7 @@ _vtn_local_load_store(struct vtn_builder *b, bool load, nir_deref_var *deref, if (load) { nir_ssa_dest_init(&intrin->instr, &intrin->dest, intrin->num_components, - glsl_get_bit_size(glsl_get_base_type(tail->type)), + glsl_get_bit_size(tail->type), NULL); inout->def = &intrin->dest.ssa; } else { @@ -414,7 +414,7 @@ _vtn_load_store_tail(struct vtn_builder *b, nir_intrinsic_op op, bool load, if (load) { nir_ssa_dest_init(&instr->instr, &instr->dest, instr->num_components, - glsl_get_bit_size(glsl_get_base_type(type)), NULL); + glsl_get_bit_size(type), NULL); (*inout)->def = &instr->dest.ssa; } |