Skip to content

microsoft/compiler: Add struct dxil_features forward declaration.

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

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: b9c61379 ("microsoft/compiler: translate nir to dxil") Signed-off-by: Vinson Lee

cc: @kusma

Merge request reports