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 but lots and lots of conformance testing (VK-GL-CTS) :) Alyssa On Tue, Feb 23, 2021 at 10:35:08AM -0800, Tommy Chou wrote: > 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 list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev