Re: [Mesa-dev] [PATCH v2 6/9] nir: Add a large constants optimization pass

2018-06-29 Thread Jason Ekstrand
On Fri, Jun 29, 2018 at 9:56 PM, Timothy Arceri wrote: > On 30/06/18 10:13, Jason Ekstrand wrote: > >> This pass searches for reasonably large local variables which can be >> statically proven to be constant and moves them into shader constant >> data. This is especially useful when large tables

Re: [Mesa-dev] [PATCH v2 6/9] nir: Add a large constants optimization pass

2018-06-29 Thread Timothy Arceri
On 30/06/18 10:13, Jason Ekstrand wrote: This pass searches for reasonably large local variables which can be statically proven to be constant and moves them into shader constant data. This is especially useful when large tables are baked into the shader source code because they can be moved int

[Mesa-dev] [PATCH v2 6/9] nir: Add a large constants optimization pass

2018-06-29 Thread Jason Ekstrand
This pass searches for reasonably large local variables which can be statically proven to be constant and moves them into shader constant data. This is especially useful when large tables are baked into the shader source code because they can be moved into a UBO by the driver to reduce register pr