[Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-10 Thread Danylo Piliaiev
After optimization passes and many trasfromations most of memory NIR holds is a garbage which was being freed only after shader deletion. Freeing it at the end of linking will save memory which would be useful in case there are a lot of complex shaders being compiled. The common case for this issue

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-18 Thread Eric Anholt
Danylo Piliaiev writes: > After optimization passes and many trasfromations most of memory "transformations" > NIR holds is a garbage which was being freed only after shader deletion. "is garbage" > Freeing it at the end of linking will save memory which would be useful > in case there are a

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-19 Thread Timothy Arceri
On 19/07/18 08:31, Eric Anholt wrote: Danylo Piliaiev writes: After optimization passes and many trasfromations most of memory "transformations" NIR holds is a garbage which was being freed only after shader deletion. "is garbage" Freeing it at the end of linking will save memory which

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-19 Thread Danylo Piliaiev
On 19.07.18 11:47, Timothy Arceri wrote: On 19/07/18 08:31, Eric Anholt wrote: Danylo Piliaiev writes: After optimization passes and many trasfromations most of memory "transformations" NIR holds is a garbage which was being freed only after shader deletion. "is garbage" Freeing it

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-19 Thread Timothy Arceri
On 19.07.18 11:47, Timothy Arceri wrote: On 19/07/18 08:31, Eric Anholt wrote: Danylo Piliaiev writes: After optimization passes and many trasfromations most of memory "transformations" NIR holds is a garbage which was being freed only after shader deletion. "is garbage" Freeing it at

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-19 Thread Danylo Piliaiev
On 19.07.18 12:30, Timothy Arceri wrote: On 19.07.18 11:47, Timothy Arceri wrote: On 19/07/18 08:31, Eric Anholt wrote: Danylo Piliaiev writes: After optimization passes and many trasfromations most of memory "transformations" NIR holds is a garbage which was being freed only after shade

Re: [Mesa-dev] [PATCH 2/3] st: Sweep NIR after linking phase to free held memory

2018-07-20 Thread Eric Anholt
Timothy Arceri writes: >> On 19.07.18 11:47, Timothy Arceri wrote: >>> On 19/07/18 08:31, Eric Anholt wrote: Danylo Piliaiev writes: > After optimization passes and many trasfromations most of memory "transformations" > NIR holds is a garbage which was being free