dzn: fix pointer type mismatch

Merged Eric Engestrom requested to merge eric/mesa:dzn-gcc13-fix into main
../src/microsoft/vulkan/dzn_image.c: In function ‘dzn_GetImageMemoryRequirements2’:
../src/microsoft/vulkan/dzn_image.c:918:91: error: passing argument 6 of ‘dzn_ID3D12Device12_GetResourceAllocationInfo3’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  918 |                                                            &image->castable_format_count, &image->castable_formats,
      |                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                           |
      |                                                                                           DXGI_FORMAT **
In file included from ../src/microsoft/vulkan/dzn_private.h:67,
                 from ../src/microsoft/vulkan/dzn_image.c:24:
../src/microsoft/vulkan/dzn_abi_helper.h:64:107: note: expected ‘const DXGI_FORMAT * const*’ but argument is of type ‘DXGI_FORMAT **’
   64 |                                               const UINT *num_castable_formats, const DXGI_FORMAT *const *castable_formats,
      |                                                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.

Fixes: 71dbb312 ("dzn: Use GetResourceAllocationInfo3 for castable formats")

Unfortunately this is a %Mesa 23.1 Release Blockers, as my distro recently updated to GCC 13 and this is preventing me from making another release 😅

Edited by Eric Engestrom

Merge request reports