vulkan/wsi: use function ptr definitions from the spec.
[mesa.git] / src / amd / vulkan / radv_wsi.c
index 64f5b0d0d30499f4690e1b68054d85feba1e984e..98346cae0625377b9ac22499b68969088b9b301b 100644 (file)
@@ -29,8 +29,9 @@
 #include "vk_util.h"
 #include "util/macros.h"
 
+#define WSI_CB(x) .x = radv_##x
 MAYBE_UNUSED static const struct wsi_callbacks wsi_cbs = {
-   .get_phys_device_format_properties = radv_GetPhysicalDeviceFormatProperties,
+       WSI_CB(GetPhysicalDeviceFormatProperties),
 };
 
 VkResult