ir2: Drop lower_locals_to_regs call
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 29 May 2023 19:45:21 +0000 (15:45 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 9 Jun 2023 12:06:00 +0000 (12:06 +0000)
This is for producing (indirect) array register access. Since we don't handle
that, this is a no-op. Drop the call, it's pointless and misleading.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23529>

src/gallium/drivers/freedreno/a2xx/ir2_nir.c

index 32ec9fd..cfe12ab 100644 (file)
@@ -1119,8 +1119,6 @@ ir2_nir_compile(struct ir2_context *ctx, bool binning)
 
    OPT_V(ctx->nir, nir_lower_alu_to_scalar, ir2_alu_to_scalar_filter_cb, NULL);
 
-   OPT_V(ctx->nir, nir_lower_locals_to_regs);
-
    OPT_V(ctx->nir, nir_convert_from_ssa, true);
 
    OPT_V(ctx->nir, nir_move_vec_src_uses_to_dest);