summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-06-04 14:31:53 -0700
committerChad Versace <[email protected]>2015-06-04 14:32:22 -0700
commit87d98e19357c84a816bb737357e22b02c0e7d40c (patch)
tree78f43bef7ddf4f17d98d59e449d0b7e6ccf81fa8
parentb981379bcf3cb88f1119e465adc195d2783af7cc (diff)
vk: Fix 2 incorrect typecasts
The compiler didn't find the cast errors because all Vulkan types are just integers.
-rw-r--r--src/vulkan/device.c4
1 files 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;
}