radeonsi: also enable tgsi_to_nir caching for compute shaders
authorMarek Olšák <marek.olsak@amd.com>
Wed, 13 May 2020 17:33:00 +0000 (13:33 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 19:43:05 +0000 (19:43 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4993>

src/gallium/drivers/radeonsi/si_compute.c

index 504e518111e276d226bd48816fc00d52180448b6..73b2a69923ef3f2ac39375d40489927e9a7cc7b4 100644 (file)
@@ -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;