gallivm: Fix a signature mismatch warning

gcc 11 says:

../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:84:49: warning: argument 3 of type ‘struct LLVMOpaqueValue * const*’ declared as a pointer [-Warray-parameter=]
   84 |                             const LLVMValueRef *unswizzled,
      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from ../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:42:
../src/gallium/auxiliary/gallivm/lp_bld_format.h:126:48: note: previously declared as an array ‘struct LLVMOpaqueValue * const[4]’
  126 |                             const LLVMValueRef unswizzled[4],
      |                             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10738>
This commit is contained in:
Adam Jackson 2021-05-10 12:26:48 -04:00
parent 811f289c56
commit 37e1526479
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ convert_to_soa(struct gallivm_state *gallivm,
void
lp_build_format_swizzle_soa(const struct util_format_description *format_desc,
struct lp_build_context *bld,
const LLVMValueRef *unswizzled,
const LLVMValueRef unswizzled[4],
LLVMValueRef swizzled_out[4])
{
if (format_desc->colorspace == UTIL_FORMAT_COLORSPACE_ZS) {