summaryrefslogtreecommitdiffstats
path: root/src/vulkan/wsi/wsi_common.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2017-11-16 08:46:41 +1000
committerJason Ekstrand <[email protected]>2017-12-04 10:04:19 -0800
commit2cbeb32555421ae302222e6e730b412c82742d74 (patch)
treefa571f717974501b6188f88191572c612410d2d2 /src/vulkan/wsi/wsi_common.h
parent55a97db52347f62111a24715078c6035380d3e19 (diff)
vulkan/wsi: use function ptr definitions from the spec.
This just seems cleaner, and we may expand this in future. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r--src/vulkan/wsi/wsi_common.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h
index 8166b7dd344..7be0182adfa 100644
--- a/src/vulkan/wsi/wsi_common.h
+++ b/src/vulkan/wsi/wsi_common.h
@@ -118,11 +118,11 @@ struct wsi_device {
struct wsi_interface * wsi[VK_ICD_WSI_PLATFORM_MAX];
};
+#define WSI_CB(cb) PFN_vk##cb cb
struct wsi_callbacks {
- void (*get_phys_device_format_properties)(VkPhysicalDevice physicalDevice,
- VkFormat format,
- VkFormatProperties *pFormatProperties);
+ WSI_CB(GetPhysicalDeviceFormatProperties);
};
+#undef WSI_CB
#define WSI_DEFINE_NONDISP_HANDLE_CASTS(__wsi_type, __VkType) \
\