From fb4e2195ecd8565a8222d6182fb5aba91b6a92d4 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 9 Jul 2015 20:24:17 -0700 Subject: [PATCH] vk/formats.c: Use the casting functions --- src/vulkan/formats.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vulkan/formats.c b/src/vulkan/formats.c index 00300e19c23..0fa47fda681 100644 --- a/src/vulkan/formats.c +++ b/src/vulkan/formats.c @@ -247,8 +247,7 @@ VkResult anv_GetPhysicalDeviceFormatInfo( VkFormat _format, VkFormatProperties* pFormatInfo) { - struct anv_physical_device *physical_device = - (struct anv_physical_device *) physicalDevice; + ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice); const struct surface_format_info *info; int gen; -- 2.30.2