From: Jason Ekstrand Date: Sat, 12 Jan 2019 04:13:36 +0000 (-0600) Subject: spirv: Drop a bogus assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4602e705e45fce6e69667c7a734ded920991e72b;p=mesa.git spirv: Drop a bogus assert This was valid back when the only valid types of pointers were uint32 and uvec2. Now that we're allowing more variety, it could be just about anything so we'll just drop the assert. Reviewed-by: Lionel Landwerlin Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Karol Herbst --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 792b7418c91..17f067133dd 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1797,7 +1797,6 @@ struct vtn_pointer * vtn_pointer_from_ssa(struct vtn_builder *b, nir_ssa_def *ssa, struct vtn_type *ptr_type) { - vtn_assert(ssa->num_components <= 2 && ssa->bit_size == 32); vtn_assert(ptr_type->base_type == vtn_base_type_pointer); struct vtn_type *interface_type = ptr_type->deref;