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:
parent
c702de7484
commit
0e7863c3b0
|
@ -319,7 +319,7 @@ glsl_type_is_matrix(const struct glsl_type *type)
|
||||||
bool
|
bool
|
||||||
glsl_matrix_type_is_row_major(const struct glsl_type *type)
|
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;
|
return type->interface_row_major;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue