mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 01:50:12 +01:00
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:
parent
a3782a612f
commit
684f7cd7e3
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue