vulkan/wsi: use function ptr definitions from the spec.
[mesa.git] / src / intel / vulkan / anv_wsi.c
index 08d83cd7f7d38e1efa24ac30c0d46cd5c1137fea..945b01147eaffffe6acfffd7dc31f08b4f292057 100644 (file)
@@ -27,8 +27,9 @@
 #include "vk_util.h"
 
 #ifdef VK_USE_PLATFORM_WAYLAND_KHR
+#define WSI_CB(x) .x = anv_##x
 static const struct wsi_callbacks wsi_cbs = {
-   .get_phys_device_format_properties = anv_GetPhysicalDeviceFormatProperties,
+   WSI_CB(GetPhysicalDeviceFormatProperties),
 };
 #endif