spirv2dxil.c:128:22: error: passing argument 7 of ‘spirv_to_dxil’ from incompatible pointer type [-Werror=incompatible-pointer-types]
../src/microsoft/spirv_to_dxil/spirv2dxil.c: In function ‘main’:
../src/microsoft/spirv_to_dxil/spirv2dxil.c:128:22: error: passing argument 7 of ‘spirv_to_dxil’ from incompatible pointer type [-Werror=incompatible-pointer-types]
128 | &data, &size)) {
| ^~~~~
| |
| void **
In file included from ../src/microsoft/spirv_to_dxil/spirv2dxil.c:33:
../src/microsoft/spirv_to_dxil/spirv_to_dxil.h:129:53: note: expected ‘const struct dxil_spirv_runtime_conf *’ but argument is of type ‘void **’
129 | const struct dxil_spirv_runtime_conf *conf,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../src/microsoft/spirv_to_dxil/spirv2dxil.c:128:29: error: passing argument 8 of ‘spirv_to_dxil’ from incompatible pointer type [-Werror=incompatible-pointer-types]
128 | &data, &size)) {
| ^~~~~
| |
| size_t * {aka long unsigned int *}
In file included from ../src/microsoft/spirv_to_dxil/spirv2dxil.c:33:
../src/microsoft/spirv_to_dxil/spirv_to_dxil.h:130:41: note: expected ‘struct dxil_spirv_object *’ but argument is of type ‘size_t *’ {aka ‘long unsigned int *’}
130 | struct dxil_spirv_object *out_dxil);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Build failure introduced with commit ada05759.
commit ada05759e1ed732c2a94992f157a2f2ec5c24d51
Author: Enrico Galli <enrico.galli@intel.com>
Date: Mon Aug 30 14:45:11 2021 -0700
spirv_to_dxil: Convert out parameters to a single object
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12707>