From 684f7cd7e32d597982be04fb2c2dd0ee40fdae0b Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 6 Apr 2018 08:54:25 -0400 Subject: [PATCH] freedreno/ir3: use lower_global_vars_to_local in cmdline compiler tgsi_to_nir emits things with arrays as global vars.. and nir->ir3 does lower_locals_to_regs. But nothing was lowering global to local, which breaks compiling tgsi shaders Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index 41bd1dee0de..ff1d9d1377b 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c @@ -441,6 +441,7 @@ int main(int argc, char **argv) tgsi_dump(toks, 0); nir = ir3_tgsi_to_nir(toks); + NIR_PASS_V(nir, nir_lower_global_vars_to_local); } else if (from_spirv) { nir = load_spirv(filenames[0], entry, stage); -- 2.30.2