From: Marek Olšák Date: Wed, 13 May 2020 17:33:00 +0000 (-0400) Subject: radeonsi: also enable tgsi_to_nir caching for compute shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1152af2edacb93126b66e19399d971036fc02d79;p=mesa.git radeonsi: also enable tgsi_to_nir caching for compute shaders Part-of: --- diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index 504e518111e..73b2a69923e 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -217,7 +217,7 @@ static void *si_create_compute_state(struct pipe_context *ctx, const struct pipe if (cso->ir_type != PIPE_SHADER_IR_NATIVE) { if (cso->ir_type == PIPE_SHADER_IR_TGSI) { program->ir_type = PIPE_SHADER_IR_NIR; - sel->nir = tgsi_to_nir(cso->prog, ctx->screen, false); + sel->nir = tgsi_to_nir(cso->prog, ctx->screen, true); } else { assert(cso->ir_type == PIPE_SHADER_IR_NIR); sel->nir = (struct nir_shader *)cso->prog;