Re: [Mesa-dev] [PATCH v4] glsl: Expand matrix flip optimization pass to cover more cases.

2014-09-19 Thread Iago Toral Quiroga
On vie, 2014-09-19 at 21:16 +1000, Timothy Arceri wrote: > On Fri, 2014-09-19 at 12:52 +0200, Iago Toral Quiroga wrote: > > Also, as suggested by Ian Romanick, make it so we don't need a bunch of > > individual handles to flippable matrices, instead we register > > matrix/transpose_matrix pairs in

Re: [Mesa-dev] [PATCH v4] glsl: Expand matrix flip optimization pass to cover more cases.

2014-09-19 Thread Timothy Arceri
On Fri, 2014-09-19 at 12:52 +0200, Iago Toral Quiroga wrote: > Also, as suggested by Ian Romanick, make it so we don't need a bunch of > individual handles to flippable matrices, instead we register > matrix/transpose_matrix pairs in a hash table for all built-in matrices > using the non-transpose

[Mesa-dev] [PATCH v4] glsl: Expand matrix flip optimization pass to cover more cases.

2014-09-19 Thread Iago Toral Quiroga
Also, as suggested by Ian Romanick, make it so we don't need a bunch of individual handles to flippable matrices, instead we register matrix/transpose_matrix pairs in a hash table for all built-in matrices using the non-transpose matrix name as key. --- src/glsl/opt_flip_matrices.cpp | 159 +++