Re: [Mesa-dev] [PATCH v2] glsl: fix assignment of multiple scalar and vecs to matrices.

2015-04-10 Thread Ben Widawsky
On Tue, Apr 07, 2015 at 03:49:55PM +0200, Samuel Iglesias Gonsalvez wrote: > When a vec has more elements than row components in a matrix, the > code could end up failing an assert inside assign_to_matrix_column(). > > This patch makes sure that when there is still room in the matrix for > more el

[Mesa-dev] [PATCH v2] glsl: fix assignment of multiple scalar and vecs to matrices.

2015-04-07 Thread Samuel Iglesias Gonsalvez
When a vec has more elements than row components in a matrix, the code could end up failing an assert inside assign_to_matrix_column(). This patch makes sure that when there is still room in the matrix for more elements (but in other columns of the matrix), the data is actually assigned. This pat