diff options
author | Timothy Arceri <[email protected]> | 2018-01-31 12:58:48 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-01 09:42:57 +1100 |
commit | 679e4e7a46c5b37004f8363fb273afcd47e1b1da (patch) | |
tree | 8631cbd4a9d9128101cc94e1a96040588815188a /src/gallium/drivers/r600/r600_shader.c | |
parent | 5a7aba2e0a7fb3414a94d04d5970a2ed10c1f63e (diff) |
st/glsl_to_nir: add more nir opts to st_nir_opts()
All of the current gallium nir driver use these optimisations but
they do so in their backends. Having these called in the backend
only can cause a number of problems:
- Shader compile times are greater because the opts need to do
significant passes over all shader variants.
- The shader cache is partially defeated due to the significant
optimisation passes over variants.
- We might miss out on nir linking optimisation opportunities.
Adding these passes to st_nir_opts() alleviates these problems.
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
0 files changed, 0 insertions, 0 deletions