mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 01:48:22 +02:00
vk: Replace some raw casts with safe casts
That is, replace some instances of
(VkFoo) foo
with
anv_foo_to_handle(foo)
This commit is contained in:
parent
7529e7ce86
commit
365d80a91e
1 changed files with 2 additions and 2 deletions
|
|
@ -83,8 +83,8 @@ VkResult anv_CreateDmaBufImageINTEL(
|
|||
assert(image->extent.height > 0);
|
||||
assert(image->extent.depth == 1);
|
||||
|
||||
*pMem = (VkDeviceMemory) mem;
|
||||
*pImage = (VkImage) image;
|
||||
*pMem = anv_device_memory_to_handle(mem);
|
||||
*pImage = anv_image_to_handle(image);
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue