From: Chad Versace Date: Thu, 4 Jun 2015 21:31:53 +0000 (-0700) Subject: vk: Fix 2 incorrect typecasts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87d98e19357c84a816bb737357e22b02c0e7d40c;p=mesa.git vk: Fix 2 incorrect typecasts The compiler didn't find the cast errors because all Vulkan types are just integers. --- diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 0f511917205..6a93766158f 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -1331,7 +1331,7 @@ VkResult anv_CreateFence( fence->execbuf.rsvd1 = device->context_id; fence->execbuf.rsvd2 = 0; - *pFence = (VkQueryPool) fence; + *pFence = (VkFence) fence; return VK_SUCCESS; @@ -1561,7 +1561,7 @@ VkResult anv_CreateBufferView( fill_buffer_surface_state(view->surface_state.map, pCreateInfo->format, view->offset, pCreateInfo->range); - *pView = (VkImageView) view; + *pView = (VkBufferView) view; return VK_SUCCESS; }