vk/formats.c: Use the casting functions

This commit is contained in:
Jason Ekstrand 2015-07-09 20:24:17 -07:00
parent a52e208203
commit fb4e2195ec

View 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;