llvmpipe: Make lp_build_interp_soa declaration match its definition
authorMichel Dänzer <mdaenzer@redhat.com>
Fri, 14 Apr 2023 09:26:10 +0000 (11:26 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 18 Apr 2023 09:49:44 +0000 (09:49 +0000)
commit92a47ba1ae40990b837923162788331e4cadec2c
tree3d511abde07e4746b5e0fbd2cfde9fa4be057bff
parent2420b190b8b324befd0eab89e42c28de47d3498f
llvmpipe: Make lp_build_interp_soa declaration match its definition

Pointed out by GCC 13:

../src/gallium/drivers/llvmpipe/lp_bld_interp.c:545:1: warning: conflicting types for ‘lp_build_interp_soa’ due to enum/integer mismatch; have ‘struct LLVMOpaqueValue *(struct lp_build_interp_soa_context *, struct gallivm_state *, struct LLVMOpaqueValue *, struct LLVMOpaqueType *, struct LLVMOpaqueValue *, unsigned int,  unsigned int,  enum tgsi_interpolate_loc,  struct LLVMOpaqueValue *, struct LLVMOpaqueValue **)’ [-Wenum-int-mismatch]
  545 | lp_build_interp_soa(struct lp_build_interp_soa_context *bld,
      | ^~~~~~~~~~~~~~~~~~~
In file included from ../src/gallium/drivers/llvmpipe/lp_bld_interp.c:50:
../src/gallium/drivers/llvmpipe/lp_bld_interp.h:154:1: note: previous declaration of ‘lp_build_interp_soa’ with type ‘struct LLVMOpaqueValue *(struct lp_build_interp_soa_context *, struct gallivm_state *, struct LLVMOpaqueValue *, struct LLVMOpaqueType *, struct LLVMOpaqueValue *, unsigned int,  unsigned int,  unsigned int,  struct LLVMOpaqueValue *, struct LLVMOpaqueValue **)’
  154 | lp_build_interp_soa(struct lp_build_interp_soa_context *bld,
      | ^~~~~~~~~~~~~~~~~~~

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22517>
src/gallium/drivers/llvmpipe/lp_bld_interp.h