[Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-23 Thread Gert Wollny
Array who's elements are only accessed directly are replaced by the according number of temporary registers. By doing so the otherwise reserved register range becomes subject to further optimizations like copy propagation and register merging. Thanks to the resulting reduced register pressure this

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-26 Thread Eric Anholt
Gert Wollny writes: > Array who's elements are only accessed directly are replaced by the > according number of temporary registers. By doing so the otherwise > reserved register range becomes subject to further optimizations like > copy propagation and register merging. > > Thanks to the resulti

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-26 Thread Timothy Arceri
On 27/11/17 13:01, Eric Anholt wrote: Gert Wollny writes: Array who's elements are only accessed directly are replaced by the according number of temporary registers. By doing so the otherwise reserved register range becomes subject to further optimizations like copy propagation and register m

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-27 Thread Gert Wollny
Am Sonntag, den 26.11.2017, 18:01 -0800 schrieb Eric Anholt: > Gert Wollny writes: > > > Array who's elements are only accessed directly are replaced by the > > according number of temporary registers. By doing so the otherwise > > > reserved register range becomes subject to further optimization

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-27 Thread Gert Wollny
Am Montag, den 27.11.2017, 12:14 +0100 schrieb Gert Wollny: > Am Sonntag, den 26.11.2017, 18:01 -0800 schrieb Eric Anholt: > > > > > > This looks like something that should be done with (at most) a > > small change to opt_array_splitting.cpp, rather than reimplementing > > it here. > > It seems

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-27 Thread Timothy Arceri
On 28/11/17 01:01, Gert Wollny wrote: Am Montag, den 27.11.2017, 12:14 +0100 schrieb Gert Wollny: Am Sonntag, den 26.11.2017, 18:01 -0800 schrieb Eric Anholt: This looks like something that should be done with (at most) a small change to opt_array_splitting.cpp, rather than reimplementing i

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-28 Thread Gert Wollny
Am Dienstag, den 28.11.2017, 08:45 +1100 schrieb Timothy Arceri: > > > > > > If I understand the comments in opt_array_splitting, arrays of > > arrays are not properly handled there. Curretly, I don't see how I > > can fix this, because I simply didn't look at any code there > > before. > > The

Re: [Mesa-dev] [PATCH] mesa/st: glsl_to_tgsi: Dissolve arrays who's elements are only accessed directly

2017-11-29 Thread Timothy Arceri
On 29/11/17 00:54, Gert Wollny wrote: Am Dienstag, den 28.11.2017, 08:45 +1100 schrieb Timothy Arceri: If I understand the comments in opt_array_splitting, arrays of arrays are not properly handled there. Curretly, I don't see how I can fix this, because I simply didn't look at any code ther