From 365d80a91e822f28c35aeec09c8ca787163b73bf Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 15 Jul 2015 14:00:21 -0700 Subject: [PATCH] vk: Replace some raw casts with safe casts That is, replace some instances of (VkFoo) foo with anv_foo_to_handle(foo) --- src/vulkan/intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2