diff options
author | Axel Davy <[email protected]> | 2020-05-12 22:26:46 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-13 19:43:05 +0000 |
commit | f83f538881da04bc2a5dca2741c69b50a8880b40 (patch) | |
tree | f08ca37bc4ef2df66a98b335528539babc7f5067 /src | |
parent | 4db880d8057bac3209c196edc94c6b1e521a782a (diff) |
st/nine: Enable ttn cache
A trace of a Hat in Time, which builds thousands of shaders
takes 339 seconds to run the second time without this patch,
and 41 seconds with it (basically there is no more loading times).
Signed-off-by: Axel Davy <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/frontends/nine/nine_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/frontends/nine/nine_shader.c b/src/gallium/frontends/nine/nine_shader.c index d6da68f7ec9..c56040a293c 100644 --- a/src/gallium/frontends/nine/nine_shader.c +++ b/src/gallium/frontends/nine/nine_shader.c @@ -3836,7 +3836,7 @@ static void nine_pipe_nir_shader_state_from_tgsi(struct pipe_shader_state *state, const struct tgsi_token *tgsi_tokens, struct pipe_screen *screen) { - struct nir_shader *nir = tgsi_to_nir(tgsi_tokens, screen, false); + struct nir_shader *nir = tgsi_to_nir(tgsi_tokens, screen, true); if (unlikely(nine_shader_get_debug_flag(NINE_SHADER_DEBUG_OPTION_DUMP_NIR))) { nir_print_shader(nir, stdout); |