vk/pipeline.c: Use the casting functions
[mesa.git] / 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;