castano,
@castano@mastodon.gamedev.place avatar

I wish I could visualize the register use of a shader program for every line statement. If a statement is used in multiple code paths, I would want to see the maximum register use, which is what matters. Is there any tool out there that accomplishes this?

mjp,
@mjp@mastodon.gamedev.place avatar

@castano Radeon GPU Analzer is the only public tool I know of that can show you register pressure for each instruction: https://radeon-gpu-analyzer-rga.readthedocs.io/en/latest/help_manual.html#id19

castano,
@castano@mastodon.gamedev.place avatar

@mjp Thanks! That’s exactly what I was looking for.

anteru,
@anteru@mastodon.gamedev.place avatar

@castano @mjp Just keep in mind it's "best effort" as there are some assumptions it has to make in presence of image functions. The underlying tool is btw. utils/Shae.exe, you can run it directly on any AMD ISA if you want to.

c0de517e,
@c0de517e@mastodon.gamedev.place avatar

@mjp @castano it is not terribly hard to write one (from disassembly) FWIW, but yeah, for amd that's great.

castano,
@castano@mastodon.gamedev.place avatar

@c0de517e @mjp Yes, not hard, assuming you have access to the assembly code, but on mobile that is usually not the case.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • cubers
  • JUstTest
  • ethstaker
  • osvaldo12
  • modclub
  • cisconetworking
  • mdbf
  • tester
  • tacticalgear
  • Leos
  • normalnudes
  • provamag3
  • anitta
  • megavids
  • lostlight
  • All magazines