summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
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/amd/vulkan
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/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_wsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_wsi.c b/src/amd/vulkan/radv_wsi.c
index 64f5b0d0d30..98346cae062 100644
--- a/src/amd/vulkan/radv_wsi.c
+++ b/src/amd/vulkan/radv_wsi.c
@@ -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