From 4602e705e45fce6e69667c7a734ded920991e72b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 11 Jan 2019 22:13:36 -0600 Subject: [PATCH] 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 --- src/compiler/spirv/vtn_variables.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 792b741..17f0671 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; -- 2.7.4