diff options
author | Rob Clark <[email protected]> | 2018-04-06 08:54:25 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-04-07 11:33:41 -0400 |
commit | 684f7cd7e32d597982be04fb2c2dd0ee40fdae0b (patch) | |
tree | 39fff2e024936971dea00c1a6b599775151ca409 /src/gallium/drivers | |
parent | a3782a612f1a4aaf8d16bed2113c6c798afd3011 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |