Skip to content

Draft: nir, aco: Add nir_opt_selection_control.

Georg Lehmann requested to merge DadSchoorse/mesa:nir_opt_selection_control into main

This allows us to remove uniform jumps when we determine that at least one invocation is always active for a logical branch. Currently handles waterfall loop conditions and if (subgroupElect()).

Foz-DB Navi21:

Totals from 771 (0.57% of 134913) affected shaders:
CodeSize: 4719144 -> 4698912 (-0.43%)
Instrs: 881921 -> 876863 (-0.57%)
Latency: 8866927 -> 8865538 (-0.02%); split: -0.02%, +0.00%
InvThroughput: 1623452 -> 1623346 (-0.01%); split: -0.01%, +0.00%
Branches: 45457 -> 40399 (-11.13%)

Merge request reports