[Mesa-dev] NIR Debugging Tips

2021-02-25 Thread Tommy Chou
Hi, Could I get some tips on figuring out what the NIR intrinsics do, specifically the vulkan related ones? Also, what is the debug strategy that is used to debug NIR shaders to check if the implementation is correct? Thanks, Tommy ___ mesa-dev mailing

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