Re: [Mesa-dev] [PATCH] glsl: emit row_major matrix's SSBO stores only for components in writemask

2015-10-01 Thread Iago Toral
On Thu, 2015-10-01 at 09:41 +0200, Samuel Iglesias Gonsalvez wrote: > When writing to a column of a row-major matrix, each component of the > vector is stored to non-consecutive memory addresses, so we generate > one instruction per component. > > This patch skips the disabled components in the wr

[Mesa-dev] [PATCH] glsl: emit row_major matrix's SSBO stores only for components in writemask

2015-10-01 Thread Samuel Iglesias Gonsalvez
When writing to a column of a row-major matrix, each component of the vector is stored to non-consecutive memory addresses, so we generate one instruction per component. This patch skips the disabled components in the writemask, saving some store instructions plus avoid storing wrong data on each