vk: Replace some raw casts with safe casts

That is, replace some instances of
    (VkFoo) foo
with
    anv_foo_to_handle(foo)
This commit is contained in:
Chad Versace
2015-07-15 14:00:21 -07:00
parent 7529e7ce86
commit 365d80a91e
+2 -2
View 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;