From 0e7863c3b025042d7e41b5c9f73a6b7f788a87a3 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 24 Jun 2022 11:15:50 -0400 Subject: [PATCH] nir/types: fix glsl_matrix_type_is_row_major() assert interface blocks can have row_major set cc: mesa-stable affects (zink): dEQP-GLES2.functional.shaders* Reviewed-by: Timothy Arceri Reviewed-by: Jason Ekstrand Part-of: --- src/compiler/nir_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 4693ddd4905..1f86a386933 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -319,7 +319,7 @@ glsl_type_is_matrix(const struct glsl_type *type) bool glsl_matrix_type_is_row_major(const struct glsl_type *type) { - assert(type->is_matrix() && type->explicit_stride); + assert((type->is_matrix() && type->explicit_stride) || type->is_interface()); return type->interface_row_major; }