Skip to content

nir, aco: various algebraic optimizations

Daniel Schürmann requested to merge daniel-schuermann/mesa:aco_bcsel into master

This MR adds a bunch of algebraic optimizations. Please give feedback if you encounter any regressions for your backend.

 PERCENTAGE DELTAS    Shaders     SGPRs     VGPRs SpillSGPR SpillVGPR  PrivVGPR   Scratch  CodeSize  MaxWaves   VClause    Instrs
 battlefront2            4566    0.14 %   -0.02 %     .         .         .         .       -0.41 %     .       -0.10 %   -0.49 %
 britannia                465    0.05 %    0.06 %     .         .         .         .       -0.24 %   -0.03 %     .       -0.24 %
 dark_souls_3           11975    0.23 %     .         .         .         .         .       -1.79 %     .       -0.24 %   -1.50 %
 detroit_become_human   19417     .         .         .         .         .         .       -0.14 %     .         .       -0.11 %
 deus_ex_md              8063   -0.01 %     .         .         .         .         .       -0.51 %    0.01 %     .       -0.57 %
 dirt4                   4030     .         .         .         .         .         .       -0.04 %     .         .       -0.04 %
 doom                    5775     .         .         .         .         .         .       -0.09 %     .         .       -0.09 %
 dota2                    985     .         .         .         .         .         .        0.01 %     .         .         .    
 dow3                     294     .         .         .         .         .         .       -0.09 %     .       -0.03 %   -0.12 %
 evilwithin_demo          740     .         .         .         .         .         .       -0.05 %     .         .       -0.07 %
 f12017                  5462    0.03 %     .         .         .         .         .       -0.11 %     .        0.02 %   -0.15 %
 gtav                    2955     .       -0.31 %     .         .         .         .       -0.17 %     .         .       -0.19 %
 hitman                  3131    0.06 %   -0.43 %     .         .         .         .       -0.35 %    0.14 %    0.02 %   -0.38 %
 madmax                   922   -0.04 %    0.03 %     .         .         .         .       -0.21 %   -0.03 %     .       -0.15 %
 nier                    7030   -0.44 %   -0.89 %     .         .         .         .       -1.84 %    0.76 %   -0.46 %   -2.04 %
 redout                  2488    0.16 %   -0.49 %     .         .         .         .       -0.81 %     .        0.10 %   -1.00 %
 rottr                   8039     .        0.02 %     .         .         .         .       -0.09 %   -0.03 %     .       -0.11 %
 shadowofmordor          2055    0.04 %   -1.20 %     .         .         .         .       -1.55 %    0.75 %     .       -0.60 %
 sottr_demo              5620   -0.07 %   -0.25 %     .         .         .         .       -0.35 %     .         .       -0.44 %
 strange_brigade         1412     .         .         .         .         .         .         .         .         .         .    
 talos                    782   -0.02 %    0.03 %     .         .         .         .         .         .         .         .    
 thewitness              3150    0.04 %     .         .         .         .         .       -0.08 %     .         .       -0.10 %
 threekingdoms            887   -0.05 %     .         .         .         .         .       -0.29 %    0.01 %     .       -0.35 %
 warhammer2              1871   -0.01 %    0.21 %     .         .         .         .       -0.28 %   -0.14 %   -0.04 %   -0.34 %
 worldofwarships         8536     .         .         .         .         .         .       -0.07 %     .         .       -0.10 %
 youngblood               843    0.02 %   -0.03 %     .         .         .         .       -0.07 %    0.01 %    0.03 %   -0.11 %
 --------------------------------------------------------------------------------------------------------------------------------
 All affected           28834    0.02 %   -0.26 %     .         .         .         .       -0.72 %    0.38 %   -0.11 %   -0.68 %
 --------------------------------------------------------------------------------------------------------------------------------
 Total                 111493     .       -0.11 %     .         .         .         .       -0.45 %    0.07 %   -0.06 %   -0.43 %

Merge request reports