From 87d98e19357c84a816bb737357e22b02c0e7d40c Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 4 Jun 2015 14:31:53 -0700 Subject: [PATCH] vk: Fix 2 incorrect typecasts The compiler didn't find the cast errors because all Vulkan types are just integers. --- src/vulkan/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2