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 <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2018-04-06 08:54:25 -04:00
parent a3782a612f
commit 684f7cd7e3

View file

@ -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);