Skip to content

meson: don't pass vk wsi args where they don't belong

Erik Faye-Lund requested to merge kusma/mesa:meson-vk_wsi_args into main

Only code that cares about Vulkan WSI should get the corresponding arguments passed. Otherwise, the Vulkan headers might end up including other headers that we don't have the correct dependencies passed for. So let's give those a dedicated variable, and only pass that where it's actually needed.

While we're at it, let's also limit some includes to only do vulkan_core.h rather than the full vulkan.h include. This should provide a second guard against these kinds of issues.

Fixes: b39958a3 ("anv,nir: Move the ANV YCbCr lowering pass to common code") Closes: #8193 (closed) Closes: #7616 (closed)

Edited by Erik Faye-Lund

Merge request reports