Skip to content

vulkan: use c_msvc_compat_args for shared code

Erik Faye-Lund requested to merge kusma/mesa:vulkan-msvc-compat into main

Due to both Lavapipe on Windows and Dozen, we need to support MSVC in the shared Vulkan code. So let's make sure we compile with the compatibility flags for it.

Techinically speaking, we also need this in the wsi subdir, because we also compile wsi_common_win32.c with MSVC. But wsi_common_wayland.c contains void-pointer arithmetic, causing compiler errors if we do.

Fixing that properly is a bit more involved, because Meson doesn't love passing different compiler arguments per source-file. The alternative is to remove the void-pointer arithmetic, but that seems a bit pointless as this code will never be compiled on MSVC.

So, let's leave that one out for now. We can probably do better in the future, but this gets us a step further.

Closes: #6386 (closed)

Merge request reports

Loading