Module: Mesa Branch: main Commit: 83fd7e946025063e2eb634bba42dab50892ed9c8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=83fd7e946025063e2eb634bba42dab50892ed9c8
Author: Jesse Natalie <[email protected]> Date: Mon Apr 3 15:16:09 2023 -0700 spirv2dxil: Expose yz flip pass to external callers Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22277> --- src/microsoft/spirv_to_dxil/dxil_spirv_nir.c | 2 +- src/microsoft/spirv_to_dxil/dxil_spirv_nir.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c index aa7e2785f18..7347932633f 100644 --- a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c +++ b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c @@ -438,7 +438,7 @@ lower_yz_flip(struct nir_builder *builder, nir_instr *instr, return true; } -static bool +bool dxil_spirv_nir_lower_yz_flip(nir_shader *shader, const struct dxil_spirv_runtime_conf *rt_conf, bool *reads_sysval_ubo) diff --git a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.h b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.h index 6d40c6293f0..fa95ee17d7d 100644 --- a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.h +++ b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.h @@ -79,4 +79,9 @@ struct dxil_spirv_bindless_entry { bool dxil_spirv_nir_lower_bindless(nir_shader *nir, struct dxil_spirv_nir_lower_bindless_options *options); +bool +dxil_spirv_nir_lower_yz_flip(nir_shader *shader, + const struct dxil_spirv_runtime_conf *rt_conf, + bool *reads_sysval_ubo); + #endif
