From: Timothy Arceri Date: Fri, 10 Jan 2020 11:58:49 +0000 (+1100) Subject: glsl: remove bogus assert in nir uniform linking X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55e4410b34bb699cd3dbfc32f272b3c721e00760;p=mesa.git glsl: remove bogus assert in nir uniform linking I'm not sure why this was first added but it causes an assert on any uniform matrix. Reviewed-by: Alejandro PiƱeiro Part-of: --- diff --git a/src/compiler/glsl/gl_nir_link_uniforms.c b/src/compiler/glsl/gl_nir_link_uniforms.c index 4ecd34da2b2..efb26caf7ff 100644 --- a/src/compiler/glsl/gl_nir_link_uniforms.c +++ b/src/compiler/glsl/gl_nir_link_uniforms.c @@ -555,7 +555,6 @@ nir_link_uniform(struct gl_context *ctx, glsl_get_explicit_stride(type) : 0; if (glsl_type_is_matrix(type)) { - assert(parent_type); uniform->matrix_stride = glsl_get_explicit_stride(type); uniform->row_major = glsl_matrix_type_is_row_major(type);