[Mesa-dev] [PATCH 0/1] Use a freelist in nir_opt_dce

Thomas Helland thomashelland90 at gmail.com
Sat Dec 2 14:53:24 UTC 2017

2017-12-02 15:49 GMT+01:00 Thomas Helland <thomashelland90 at gmail.com>:
> This patch tries to reduce the number of calls to ralloc in nir_opt_dce.
> Especially with scalarized shaders we have a bunch of calls to ralloc
> in this pass, hurting us quite bad. See the commit message for details.
> The other large caller to ralloc is nir_alu_instr_create, and it would
> be nice if we could allocate groups at a time also here. I'm not sure
> how we can deal with that though, as it does not allocate the same
> number of items each time. I'm also working on a similar approach for
That should be "number of bytes".

> the symbol table, but that is not quite ready yet.
> Thomas Helland (1):
>   nir: Use a freelist in nir_opt_dce to avoid spamming ralloc
>  src/compiler/nir/nir_opt_dce.c | 47 ++++++++++++++++++++++++++++--------------
>  1 file changed, 32 insertions(+), 15 deletions(-)
> --
> 2.15.0

More information about the mesa-dev mailing list