spirv2dxil: Expose yz flip pass to external callers
authorJesse Natalie <jenatali@microsoft.com>
Mon, 3 Apr 2023 22:16:09 +0000 (15:16 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 21:48:19 +0000 (21:48 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22277>

src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
src/microsoft/spirv_to_dxil/dxil_spirv_nir.h

index aa7e278..7347932 100644 (file)
@@ -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)
index 6d40c62..fa95ee1 100644 (file)
@@ -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