vk: Fix 2 incorrect typecasts
authorChad Versace <chad.versace@intel.com>
Thu, 4 Jun 2015 21:31:53 +0000 (14:31 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 4 Jun 2015 21:32:22 +0000 (14:32 -0700)
The compiler didn't find the cast errors because all Vulkan types are
just integers.

src/vulkan/device.c

index 0f51191720506b06384aff87301259ed813d604e..6a93766158f8f0fbf79fdaa95ae64e05d0139c37 100644 (file)
@@ -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;
 }