Skip to content

aco: refactor GPR limit calculation and use VCC on GFX10+ regularly

The SGPR increase is a side-effect which doesn't have a practical impact. Since GFX10, there are always 106+vcc SGPRs available, thus there is no real need to keep stats of the usage. It simplifies some things to just allocate all of them, regardless of the actual use.

 PERCENTAGE DELTAS                   Shaders    SGPRs      VGPRs      SpillSGPRs CodeSize   MaxWaves   Instrs     Cycles     VMEM       SMEM       VClause    SClause    Copies     Branches   PreSGPRs   PreVGPRs   
 ls/assassins_creed_origins          2104       +178.89%   +0.01%     -3.04%     -0.02%     -0.01%     -0.03%     -0.03%     -0.14%     +0.11%     -0.13%     +0.09%     -0.42%     -0.26%     +0.07%        .       
 ls/battlefront2                     4568       +244.03%      .       -15.38%    +0.00%        .       -0.00%     -0.00%     +0.03%     +0.05%        .       -0.01%     -0.04%        .       +0.01%        .       
 ls/britannia                        465        +251.77%      .          .       +0.00%        .       +0.00%     +0.01%     -0.00%     -0.03%        .          .       +0.03%        .          .          .       
 ls/control_msaa4x                   752        +255.10%      .       -6.25%     +0.00%        .       -0.00%     -0.00%        .       +0.01%        .       -0.01%        .          .       +0.01%        .       
 ls/control_no_msaa                  752        +255.10%      .       -6.25%     +0.00%        .       -0.00%     -0.00%        .       +0.01%        .       -0.01%        .          .       +0.01%        .       
 ls/dark_souls_1_remastered          4249       +209.61%      .          .          .          .          .          .          .          .          .          .          .          .          .          .       
 ls/dark_souls_2_sotfs               6876       +108.45%   -0.04%        .       -0.02%     +0.02%     -0.06%     -0.06%     -0.04%     -0.21%     -0.00%     +0.06%     -1.00%        .          .          .       
 ls/dark_souls_3                     8912       +119.87%      .          .       +0.01%        .       +0.01%     -0.00%     +0.24%     +0.37%     -0.05%     +0.90%     +0.88%        .       +0.01%        .       
 ls/death_stranding                  1467       +171.92%      .       -4.63%     -0.02%        .       -0.03%     -0.06%     -0.03%     -0.67%     -0.02%     -0.04%     -0.34%     +0.03%     +0.03%     -0.00%     
 ls/detroit_become_human             19959      +94.72%    -0.01%     -7.11%     -0.13%     +0.00%     -0.13%     -0.21%     -0.02%     -0.25%     -0.00%     -0.12%     -1.48%     -0.01%     +0.58%     -0.01%     
 ls/deus_ex_md                       8063       +193.03%   -0.00%        .       +0.00%     +0.00%     -0.00%     +0.00%     +0.00%     -0.04%     -0.00%     -0.03%     -0.02%     +0.02%        .          .       
 ls/dirt4                            4030       +174.58%      .          .       +0.00%        .       +0.00%     +0.00%     +0.00%     +0.00%        .       -0.00%     +0.02%        .          .          .       
 ls/doom_2016                        2963       +243.92%      .          .       +0.05%        .       +0.07%     +0.18%        .       -0.00%     +0.01%     -0.01%     +0.83%     +1.08%        .          .       
 ls/doom_eternal                     1211       +172.66%      .       -26.67%    -0.00%        .       -0.00%     -0.00%        .          .          .       -0.01%     -0.02%     +0.02%     +0.00%        .       
 ls/dota2                            1015       +212.95%      .          .          .          .          .          .          .          .          .          .          .          .          .          .       
 ls/dow3                             280        +272.63%      .          .       +0.00%        .       -0.02%     -0.02%     -0.01%     -0.13%     +0.03%     -0.05%     +0.06%        .          .          .       
 ls/evilwithin_demo                  740        +247.90%      .          .       +0.02%        .       -0.01%     -0.01%     -0.52%     +0.61%     -0.26%     -0.41%     +0.20%        .          .          .       
 ls/f12017                           5503       +192.58%      .          .       -0.01%        .       -0.01%     -0.01%     -0.00%     +0.07%        .          .       -0.21%        .          .          .       
 ls/gtav                             2987       +178.38%      .          .       +0.01%        .       -0.00%     -0.00%     -0.02%     -0.08%     +0.02%     -0.02%     -0.03%        .          .          .       
 ls/hitman                           2785       +209.72%      .          .       -0.00%        .       -0.00%     -0.00%     -0.00%     -0.00%     +0.00%     -0.02%     -0.05%        .          .          .       
 PERCENTAGE DELTAS                   Shaders    SGPRs      VGPRs      SpillSGPRs CodeSize   MaxWaves   Instrs     Cycles     VMEM       SMEM       VClause    SClause    Copies     Branches   PreSGPRs   PreVGPRs   
 ls/madmax                           948        +179.58%      .          .       +0.05%        .       -0.04%     -0.04%     -0.20%     +0.07%     +0.12%     -0.09%     -0.72%        .          .          .       
 ls/nier                             5492       +163.17%      .          .       +0.00%        .       +0.00%     +0.02%     +0.00%     +0.01%        .       -0.00%     +0.03%     +0.09%        .          .       
 ls/parallel-rdp/small_subgroup      246        +197.73%      .       -20.00%    -0.06%        .       -0.07%     -0.02%        .          .          .          .       -0.75%        .       +0.03%        .       
 ls/parallel-rdp/small_uber_subgroup 55         +287.67%      .       -2.74%     +0.23%        .       -0.02%     -0.02%     -0.05%     +1.10%     -0.10%        .       +0.17%     -0.87%     +0.88%        .       
 ls/parallel-rdp/subgroup            327        +166.67%      .       -6.06%     -0.01%        .       -0.01%     -0.00%        .       +0.01%        .          .       -0.11%        .       +0.02%        .       
 ls/parallel-rdp/uber_subgroup       55         +287.67%      .       -2.48%     +0.67%        .       +0.32%     +0.33%     -0.03%     -0.04%     +0.05%        .       +1.53%     -0.38%     +0.88%        .       
 ls/rdr2                             3888       +129.45%   -0.01%     -11.96%    -0.04%     +0.01%     -0.07%     -0.02%     -0.10%     +0.61%     -0.02%     -0.20%     -0.66%     -0.03%     +0.12%     -0.00%     
 ls/redout                           2509       +112.24%      .          .       +0.01%        .       +0.00%     +0.00%     -0.02%     -0.00%     -0.06%     -0.07%     +0.02%        .          .          .       
 ls/rottr                            8120       +166.44%   +0.00%        .       -0.02%     -0.00%     -0.05%     +0.00%     -0.05%     +0.01%     +0.01%     -0.22%     -1.01%        .          .          .       
 ls/sottr_demo                       5705       +156.85%   +0.02%     -25.06%    +0.00%        .       +0.01%     +0.17%     +0.02%     +0.01%        .       -0.01%     +0.28%     +0.29%     +0.05%     -0.00%     
 ls/strange_brigade                  1417       +202.76%      .          .          .          .          .          .       -0.00%        .          .          .          .          .          .          .       
 ls/talos                            794        +108.42%      .          .       -0.00%        .       -0.02%     -0.02%     -0.05%     +0.39%        .       -0.19%     -0.31%        .          .          .       
 ls/thewitness                       3150       +99.49%       .          .       -0.00%        .       -0.00%     -0.00%     -0.00%     -0.00%        .       -0.00%     -0.02%        .          .          .       
 ls/threekingdoms                    844        +247.76%      .          .       -0.00%        .       -0.00%     -0.00%     -0.01%     +0.02%     -0.02%     +0.05%     -0.06%        .          .          .       
 ls/tomb_raider                      16230      +241.90%   -0.00%        .       -0.00%     +0.00%     -0.00%     -0.00%     -0.00%     -0.00%     -0.00%     +0.01%     -0.04%        .          .          .       
 ls/warhammer2                       1803       +210.97%      .          .       -0.00%        .       -0.01%     -0.01%     -0.01%     +0.05%        .       -0.02%     -0.16%        .          .          .       
 ls/wolfenstein2_fp16                1012       +150.69%      .          .       +0.08%        .       +0.10%     +0.21%        .       -0.03%        .       -0.03%     +0.89%     +1.25%        .          .       
 ls/worldofwarships                  5590       +116.20%      .          .       +0.00%        .       -0.00%     -0.00%     +0.01%     -0.02%        .       -0.01%     -0.03%        .          .          .       
 ls/youngblood                       843        +209.21%      .          .       +0.14%        .       +0.18%     +0.38%     +0.00%        .          .          .       +1.52%     +2.69%        .          .       
 ls/youngblood_fp16                  682        +161.31%      .          .       +0.17%        .       +0.22%     +0.44%     +0.01%     +0.01%     -0.01%        .       +1.87%     +2.88%        .          .       
 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 All affected                        139391     +155.92%   -0.00%     -7.54%     -0.03%     +0.00%     -0.03%     -0.16%     +0.00%     -0.01%     -0.01%     +0.04%     -0.49%     +0.11%     +0.15%     -0.00%     
 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Total                               139391     +155.92%   -0.00%     -7.54%     -0.03%     +0.00%     -0.03%     -0.16%     +0.00%     -0.01%     -0.01%     +0.04%     -0.49%     +0.11%     +0.15%     -0.00%     

Merge request reports