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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user