microsoft/spirv_to_dxil: Allow dumping NIR
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 14 Oct 2021 09:38:42 +0000 (02:38 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 31 Jan 2022 20:21:25 +0000 (20:21 +0000)
commit225867684aa5cfb4854c126912125aa4ea5da7ed
tree16fd5844374de209a799324297634b0073fec06f
parent27790c4a7a659057c802e254e44cd0bb8b60192f
microsoft/spirv_to_dxil: Allow dumping NIR

Dumping NIR shaders is a useful debug feature. Let's tweak the
spirv_to_nir() helper so we can pass debugging options and
add one to allow dumping NIR.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14765>
src/microsoft/spirv_to_dxil/spirv2dxil.c
src/microsoft/spirv_to_dxil/spirv_to_dxil.c
src/microsoft/spirv_to_dxil/spirv_to_dxil.h