[Mesa-dev] NIR Debugging Tips

Alyssa Rosenzweig alyssa at collabora.com
Thu Feb 25 13:10:42 UTC 2021

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) :)


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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

More information about the mesa-dev mailing list