X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Flower_ubo_reference.cpp;h=43dd067fa8af8f5faedf2e1db84762b48d15099c;hb=3ca67f881040b4f3ecdf9b91a7f3f0bf51cf1544;hp=f3920b362ce3ce5e16609df6904843d57632ead6;hpb=5c75270c344815b15ef73e83421192fd7de35972;p=mesa.git diff --git a/src/glsl/lower_ubo_reference.cpp b/src/glsl/lower_ubo_reference.cpp index f3920b362ce..43dd067fa8a 100644 --- a/src/glsl/lower_ubo_reference.cpp +++ b/src/glsl/lower_ubo_reference.cpp @@ -111,7 +111,7 @@ is_dereferenced_thing_row_major(const ir_dereference *deref) case GLSL_MATRIX_LAYOUT_COLUMN_MAJOR: return false; case GLSL_MATRIX_LAYOUT_ROW_MAJOR: - return matrix || deref->type->is_record(); + return matrix || deref->type->without_array()->is_record(); } unreachable("invalid matrix layout");