vk/formats.c: Use the casting functions
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jul 2015 03:24:17 +0000 (20:24 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jul 2015 03:24:17 +0000 (20:24 -0700)
src/vulkan/formats.c

index 00300e19c2315e7c2dbfb3c9e44a666a0d23788e..0fa47fda68137e7ea7a45648e6649f8c9939d3e9 100644 (file)
@@ -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;