Re: [Mesa-dev] [PATCH 5/5] nir: Implement a nir_sweep() pass.

2015-04-07 Thread Jason Ekstrand
On Apr 7, 2015 2:32 AM, "Kenneth Graunke" wrote: > > This pass performs a mark and sweep pass over a nir_shader's associated > memory - anything still connected to the program will be kept, and any > dead memory we dropped on the floor will be freed. > > The expectation is that this will be called

[Mesa-dev] [PATCH 5/5] nir: Implement a nir_sweep() pass.

2015-04-07 Thread Kenneth Graunke
This pass performs a mark and sweep pass over a nir_shader's associated memory - anything still connected to the program will be kept, and any dead memory we dropped on the floor will be freed. The expectation is that this will be called when finished building and optimizing the shader. However,