From: Axel Davy Date: Wed, 13 May 2020 16:48:48 +0000 (+0200) Subject: radeonsi: Enable tgsi to nir disk cache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45e69e7d118ad0297ee924125fe04e09cfd9251e;p=mesa.git radeonsi: Enable tgsi to nir disk cache Enable the tgsi to nir cache for radeonsi. Signed-off-by: Axel Davy Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index b98d866d058..4f37852789a 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2593,7 +2593,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx, sel->so = state->stream_output; if (state->type == PIPE_SHADER_IR_TGSI) { - sel->nir = tgsi_to_nir(state->tokens, ctx->screen, false); + sel->nir = tgsi_to_nir(state->tokens, ctx->screen, true); } else { assert(state->type == PIPE_SHADER_IR_NIR); sel->nir = state->ir.nir;