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,