dougallj / applegpu

Apple G13 GPU architecture docs and tools
BSD 3-Clause "New" or "Revised" License
552 stars 41 forks source link

Add support for disassembling helper programs #49

Closed alyssarosenzweig closed 1 year ago

alyssarosenzweig commented 1 year ago

The driver passes in a special compute-like 'helper program' which is responsible for mapping and unmapping stack memory for the application shaders. It uses a few special instructions to do so. This PR adds support for disassembling these instructions, so that the helper program can be understood.