vulkan/device-select-layer: Include vulkan.h
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Thu, 16 Feb 2023 22:40:23 +0000 (16:40 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 17 Feb 2023 03:42:34 +0000 (03:42 +0000)
In the upcoming header update, vk_layer.h starts including vulkan_core.h
instead of vulkan.h.  This will break this layer as it needs a couple of
window-system extension #defines.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21225>

src/vulkan/device-select-layer/device_select_layer.c

index 341cab0..1986726 100644 (file)
@@ -30,6 +30,7 @@
  */
 
 #include <vulkan/vk_layer.h>
+#include <vulkan/vulkan.h>
 
 #include <assert.h>
 #include <stdio.h>