From d2abc7f9a67eadee8207801a3bcf82c55c98f30a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 5 Apr 2024 11:19:17 -0400 Subject: [PATCH] freedreno: set compact_arrays in compiler options Acked-by: Rob Clark Part-of: --- src/freedreno/ir3/ir3_compiler.c | 1 + src/gallium/drivers/freedreno/a2xx/ir2_nir.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler.c b/src/freedreno/ir3/ir3_compiler.c index 1ad6a5f5ca0..4bd1ffd6372 100644 --- a/src/freedreno/ir3/ir3_compiler.c +++ b/src/freedreno/ir3/ir3_compiler.c @@ -74,6 +74,7 @@ ir3_compiler_destroy(struct ir3_compiler *compiler) } static const nir_shader_compiler_options ir3_base_options = { + .compact_arrays = true, .lower_fpow = true, .lower_scmp = true, .lower_flrp16 = true, diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c index bf9912e05ea..05dd6cabe69 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_nir.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_nir.c @@ -31,6 +31,7 @@ #include "nir_legacy.h" static const nir_shader_compiler_options options = { + .compact_arrays = true, .lower_fpow = true, .lower_flrp32 = true, .lower_fmod = true,