projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b981379
)
vk: Fix 2 incorrect typecasts
author
Chad Versace
<chad.versace@intel.com>
Thu, 4 Jun 2015 21:31:53 +0000
(14:31 -0700)
committer
Chad 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
patch
|
blob
|
history
diff --git
a/src/vulkan/device.c
b/src/vulkan/device.c
index 0f51191720506b06384aff87301259ed813d604e..6a93766158f8f0fbf79fdaa95ae64e05d0139c37 100644
(file)
--- 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 = (Vk
QueryPool
) fence;
+ *pFence = (Vk
Fence
) 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 = (Vk
Image
View) view;
+ *pView = (Vk
Buffer
View) view;
return VK_SUCCESS;
}