Mesa (main): microsoft/spirv_to_dxil: Fix missing-prototypes errors.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 15 01:43:29 UTC 2022


Module: Mesa
Branch: main
Commit: fd91295473ee12b32e7f7b3d3b05d6338aa0c37c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd91295473ee12b32e7f7b3d3b05d6338aa0c37c

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Mon Jun 13 12:48:22 2022 -0700

microsoft/spirv_to_dxil: Fix missing-prototypes errors.

../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c: At top level:
../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c:646:1: error: no previous prototype for ‘dxil_spirv_nir_link’ [-Werror=missing-prototypes]
  646 | dxil_spirv_nir_link(nir_shader *nir, nir_shader *prev_stage_nir)
      | ^~~~~~~~~~~~~~~~~~~
../src/microsoft/spirv_to_dxil/dxil_spirv_nir.c:666:1: error: no previous prototype for ‘dxil_spirv_nir_passes’ [-Werror=missing-prototypes]
  666 | dxil_spirv_nir_passes(nir_shader *nir,
      | ^~~~~~~~~~~~~~~~~~~~~

Fixes: c86ea7daa36 ("microsoft/spirv_to_dxil: Extract NIR passes out of spirv_to_dxil()")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Jesse Natalie <jenatali at microsoft.com>
Reviewed-by: Boris Brezillon <boris.brezillon at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17011>

---

 src/microsoft/spirv_to_dxil/dxil_spirv_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
index bd9aaf9e6df..480784a2764 100644
--- a/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
+++ b/src/microsoft/spirv_to_dxil/dxil_spirv_nir.c
@@ -28,6 +28,7 @@
 #include "shader_enums.h"
 #include "spirv/nir_spirv.h"
 #include "util/blob.h"
+#include "dxil_spirv_nir.h"
 
 #include "git_sha1.h"
 #include "vulkan/vulkan.h"



More information about the mesa-commit mailing list