radeonsi: Enable tgsi to nir disk cache
authorAxel Davy <davyaxel0@gmail.com>
Wed, 13 May 2020 16:48:48 +0000 (18:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 19:43:05 +0000 (19:43 +0000)
Enable the tgsi to nir cache for radeonsi.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>

src/gallium/drivers/radeonsi/si_state_shaders.c

index b98d866d0587d9ee194338de0881486ab27080ed..4f37852789acfc42bf8191c426f52c00827997f4 100644 (file)
@@ -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;