Lines Matching defs:matrix
1635 /* matrix types are special: store the original deref type for later use */
1636 const struct glsl_type *matrix = deref_is_matrix(deref);
1638 if (!matrix) {
1639 /* if this isn't a direct matrix deref, it's maybe a matrix row deref */
1641 /* propagate parent matrix type to row deref */
1643 matrix = he->data;
1646 if (matrix)
1647 _mesa_hash_table_insert(derefs, deref, (void*)matrix);
1668 /* this is the stored matrix type from the deref */
1670 const struct glsl_type *matrix = he ? he->data : NULL;
1686 if (matrix) {
1687 /* matrix types always come from array (row) derefs */
1693 * - iterate over matrix columns
1697 for (unsigned idx = 0; idx < glsl_get_matrix_columns(matrix); idx++) {
1699 unsigned vec_components = glsl_get_vector_elements(matrix);
1746 if (matrix) {
1747 /* matrix types always come from array (row) derefs */
1753 * - iterate over matrix columns
1757 unsigned cols = glsl_get_matrix_columns(matrix);
1763 unsigned vec_components = glsl_get_vector_elements(matrix);