Module: Mesa Branch: master Commit: 6a4407d2699831ab4ce0f281723f8612c0aa33b7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6a4407d2699831ab4ce0f281723f8612c0aa33b7
Author: Vinson Lee <[email protected]> Date: Wed Nov 11 12:22:38 2020 -0800 microsoft/compiler: Add struct dxil_features forward declaration. This patch fixes this build error. In file included from ../src/microsoft/compiler/dxil_container.c:24: ../src/microsoft/compiler/dxil_container.h:98:42: warning: ‘struct dxil_features’ declared inside parameter list will not be visible outside of this definition or declaration 98 | const struct dxil_features *features); | ^~~~~~~~~~~~~ ../src/microsoft/compiler/dxil_container.c:72:1: error: conflicting types for ‘dxil_container_add_features’ 72 | dxil_container_add_features(struct dxil_container *c, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/microsoft/compiler/dxil_container.c:24: ../src/microsoft/compiler/dxil_container.h:97:1: note: previous declaration of ‘dxil_container_add_features’ was here 97 | dxil_container_add_features(struct dxil_container *c, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: b9c61379ab4 ("microsoft/compiler: translate nir to dxil") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Jesse Natalie <[email protected]> Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7560> --- src/microsoft/compiler/dxil_container.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microsoft/compiler/dxil_container.h b/src/microsoft/compiler/dxil_container.h index 6c1a3783109..1bdd667fa00 100644 --- a/src/microsoft/compiler/dxil_container.h +++ b/src/microsoft/compiler/dxil_container.h @@ -93,6 +93,8 @@ dxil_container_init(struct dxil_container *c); void dxil_container_finish(struct dxil_container *c); +struct dxil_features; + bool dxil_container_add_features(struct dxil_container *c, const struct dxil_features *features); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
