Re: [Mesa-dev] NIR Debugging Tips

2021-02-26 Thread Alyssa Rosenzweig
Hi Tommy, Unfortunately NIR is a bit lacking for documentation, save for comments in src/compiler/nir/nir_intrinsics.py. For Vulkan ones, the best bet is likely looking at spirv_to_nir (src/compiler/spirv/) and seeing what generates it, and working up from there. Debug strategy varies per driver

Re: [Mesa-dev] NIR Debugging Tips

2021-02-25 Thread Jason Ekstrand
Hi Tommy, As you've probably noticed already, Mesa documentation is sparse at best. For NIR, the best places to go are: 1. For ALU ops, nir_opcodes.py defines the opcodes as well as a C snippet which describes the opcode's semantics 2. For all intrinsics, nir_intrinsics.py defines them and typ