From: Rob Clark Date: Fri, 6 Apr 2018 12:54:25 +0000 (-0400) Subject: freedreno/ir3: use lower_global_vars_to_local in cmdline compiler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=684f7cd7e32d597982be04fb2c2dd0ee40fdae0b;p=mesa.git 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 --- 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);