From: Chad Versace Date: Wed, 15 Jul 2015 21:00:21 +0000 (-0700) Subject: vk: Replace some raw casts with safe casts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=365d80a91e822f28c35aeec09c8ca787163b73bf;p=mesa.git vk: Replace some raw casts with safe casts That is, replace some instances of (VkFoo) foo with anv_foo_to_handle(foo) --- diff --git a/src/vulkan/intel.c b/src/vulkan/intel.c index 06e79591ee4..6457b211f73 100644 --- a/src/vulkan/intel.c +++ b/src/vulkan/intel.c @@ -83,8 +83,8 @@ VkResult anv_CreateDmaBufImageINTEL( assert(image->extent.height > 0); assert(image->extent.depth == 1); - *pMem = (VkDeviceMemory) mem; - *pImage = (VkImage) image; + *pMem = anv_device_memory_to_handle(mem); + *pImage = anv_image_to_handle(image); return VK_SUCCESS;