vk: Replace some raw casts with safe casts
authorChad Versace <chad.versace@intel.com>
Wed, 15 Jul 2015 21:00:21 +0000 (14:00 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 15 Jul 2015 21:00:21 +0000 (14:00 -0700)
That is, replace some instances of
    (VkFoo) foo
with
    anv_foo_to_handle(foo)

src/vulkan/intel.c

index 06e79591ee4d84a59356c201a2d32a080cb241cb..6457b211f73777f300ca8e8ececb0921aaa11119 100644 (file)
@@ -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;