@@ -1703,7 +1703,7 @@ VkResult wine_vkAllocateMemory(VkDevice handle, const VkMemoryAllocateInfo *allo
1703
1703
return result ;
1704
1704
}
1705
1705
1706
- memory -> mapping = mapping ;
1706
+ memory -> vm_map = mapping ;
1707
1707
* ret = (VkDeviceMemory )(uintptr_t )memory ;
1708
1708
return VK_SUCCESS ;
1709
1709
}
@@ -1719,10 +1719,10 @@ void wine_vkFreeMemory(VkDevice handle, VkDeviceMemory memory_handle, const VkAl
1719
1719
1720
1720
device -> funcs .p_vkFreeMemory (device -> host_device , memory -> host_memory , NULL );
1721
1721
1722
- if (memory -> mapping )
1722
+ if (memory -> vm_map )
1723
1723
{
1724
1724
SIZE_T alloc_size = 0 ;
1725
- NtFreeVirtualMemory (GetCurrentProcess (), & memory -> mapping , & alloc_size , MEM_RELEASE );
1725
+ NtFreeVirtualMemory (GetCurrentProcess (), & memory -> vm_map , & alloc_size , MEM_RELEASE );
1726
1726
}
1727
1727
1728
1728
free (memory );
@@ -1751,9 +1751,9 @@ VkResult wine_vkMapMemory2KHR(VkDevice handle, const VkMemoryMapInfoKHR *map_inf
1751
1751
VkResult result ;
1752
1752
1753
1753
info .memory = memory -> host_memory ;
1754
- if (memory -> mapping )
1754
+ if (memory -> vm_map )
1755
1755
{
1756
- * data = (char * )memory -> mapping + info .offset ;
1756
+ * data = (char * )memory -> vm_map + info .offset ;
1757
1757
TRACE ("returning %p\n" , * data );
1758
1758
return VK_SUCCESS ;
1759
1759
}
@@ -1799,7 +1799,7 @@ VkResult wine_vkUnmapMemory2KHR(VkDevice handle, const VkMemoryUnmapInfoKHR *unm
1799
1799
struct wine_device_memory * memory = wine_device_memory_from_handle (unmap_info -> memory );
1800
1800
VkMemoryUnmapInfoKHR info ;
1801
1801
1802
- if (memory -> mapping )
1802
+ if (memory -> vm_map )
1803
1803
return VK_SUCCESS ;
1804
1804
1805
1805
if (!device -> funcs .p_vkUnmapMemory2KHR )
0 commit comments