Skip to content

microsoft/compiler: Add struct glsl_type forward declaration.

Vinson Lee requested to merge vlee/mesa:d3d12-glsl_type-declaration into master

This patch fixes this build error.

In file included from ../src/microsoft/compiler/dxil_enums.c:24: ../src/microsoft/compiler/dxil_enums.h:323:58: warning: 'struct glsl_type' declared inside parameter list will not be visible outside of this definition or declaration 323 | enum dxil_component_type dxil_get_comp_type(const struct glsl_type *type); | ^~~~~~~~~ ../src/microsoft/compiler/dxil_enums.h:325:71: warning: 'struct glsl_type' declared inside parameter list will not be visible outside of this definition or declaration 325 | enum dxil_prog_sig_comp_type dxil_get_prog_sig_comp_type(const struct glsl_type *type); | ^~~~~~~~~ ../src/microsoft/compiler/dxil_enums.h:327:61: warning: 'struct glsl_type' declared inside parameter list will not be visible outside of this definition or declaration 327 | enum dxil_resource_kind dxil_get_resource_kind(const struct glsl_type *type); | ^~~~~~~~~ ../src/microsoft/compiler/dxil_enums.c:31:30: error: conflicting types for 'dxil_get_prog_sig_comp_type' 31 | enum dxil_prog_sig_comp_type dxil_get_prog_sig_comp_type(const struct glsl_type *type) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ../src/microsoft/compiler/dxil_enums.c:24: ../src/microsoft/compiler/dxil_enums.h:325:30: note: previous declaration of 'dxil_get_prog_sig_comp_type' was here 325 | enum dxil_prog_sig_comp_type dxil_get_prog_sig_comp_type(const struct glsl_type *type); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: b9c61379 ("microsoft/compiler: translate nir to dxil") Signed-off-by: Vinson Lee vlee@freedesktop.org

cc: @jenatali @kusma

Edited by Vinson Lee

Merge request reports