From: Jason Ekstrand Date: Mon, 11 Jan 2016 20:39:16 +0000 (-0800) Subject: nir/spirv: Assert that matrix types are valid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96683065f29b08516c28a18275beda1632c66550;p=mesa.git nir/spirv: Assert that matrix types are valid --- diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c index 9000e895dd4..da6c0086b9e 100644 --- a/src/glsl/nir/spirv/spirv_to_nir.c +++ b/src/glsl/nir/spirv/spirv_to_nir.c @@ -597,6 +597,7 @@ vtn_handle_type(struct vtn_builder *b, SpvOp opcode, val->type->type = glsl_matrix_type(glsl_get_base_type(base->type), glsl_get_vector_elements(base->type), columns); + assert(!glsl_type_is_error(val->type->type)); val->type->array_element = base; val->type->row_major = false; val->type->stride = 0;