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 <tarceri@itsqueeze.com>

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17238>
This commit is contained in:
Mike Blumenkrantz 2022-06-24 11:15:50 -04:00 committed by Marge Bot
parent c702de7484
commit 0e7863c3b0
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}