mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
vk: Fix 2 incorrect typecasts
The compiler didn't find the cast errors because all Vulkan types are just integers.
This commit is contained in:
parent
b981379bcf
commit
87d98e1935
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue