Skip to content

radv/rt: Lower hit attributes to registers

Konstantin Seurer requested to merge KonstantinSeurer/mesa:radv_hit_attribs into main

Slowly getting there... The stats with Quake II RTX don't look good:

Totals from 7 (14.00% of 50) affected shaders:
VGPRs: 688 -> 720 (+4.65%)
CodeSize: 212500 -> 211980 (-0.24%)
MaxWaves: 70 -> 68 (-2.86%)
Instrs: 39451 -> 39450 (-0.00%); split: -0.03%, +0.03%
Latency: 916993 -> 922308 (+0.58%); split: -0.15%, +0.73%
InvThroughput: 186273 -> 193651 (+3.96%); split: -0.15%, +4.11%
VClause: 1115 -> 1065 (-4.48%)
Copies: 5328 -> 5407 (+1.48%)
Branches: 1907 -> 1904 (-0.16%)
PreVGPRs: 642 -> 656 (+2.18%)

but the performance increases from 80fps to 85fps for me.

TODO:

  • Handle indirect derefs
  • Non 32 bitsizes
Edited by Konstantin Seurer

Merge request reports