diff options
Diffstat (limited to 'src/freedreno/ir3/ir3_compiler_nir.c')
-rw-r--r-- | src/freedreno/ir3/ir3_compiler_nir.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index e6fe45daa12..1e3fbeb3117 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -2610,6 +2610,9 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, ir3_print(ir); } + /* do Sethi–Ullman numbering before scheduling: */ + ir3_sun(ir); + ret = ir3_sched(ir); if (ret) { DBG("SCHED failed!"); @@ -2708,6 +2711,8 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, else so->total_in = max_bary + 1; + so->max_sun = ir->max_sun; + out: if (ret) { if (so->ir) |