From: Jason Ekstrand Date: Fri, 10 Jul 2015 03:24:17 +0000 (-0700) Subject: vk/formats.c: Use the casting functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb4e2195ecd8565a8222d6182fb5aba91b6a92d4;p=mesa.git vk/formats.c: Use the casting functions --- 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;