vk: Update memory flushing functions to 130

This involves updating the prototype for FlushMappedMemory, adding
InvalidateMappedMemoryRanges, and removing PinSystemMemory.
This commit is contained in:
Jason Ekstrand
2015-07-07 17:22:29 -07:00
parent d5349b1b18
commit d9c2caea6a
2 changed files with 23 additions and 19 deletions

View File

@@ -990,24 +990,22 @@ VkResult anv_UnmapMemory(
return VK_SUCCESS;
}
VkResult anv_FlushMappedMemory(
VkResult anv_FlushMappedMemoryRanges(
VkDevice device,
VkDeviceMemory mem,
VkDeviceSize offset,
VkDeviceSize size)
uint32_t memRangeCount,
const VkMappedMemoryRange* pMemRanges)
{
/* clflush here for !llc platforms */
return VK_SUCCESS;
}
VkResult anv_PinSystemMemory(
VkResult anv_InvalidateMappedMemoryRanges(
VkDevice device,
const void* pSysMem,
size_t memSize,
VkDeviceMemory* pMem)
uint32_t memRangeCount,
const VkMappedMemoryRange* pMemRanges)
{
return VK_SUCCESS;
return anv_FlushMappedMemoryRanges(device, memRangeCount, pMemRanges);
}
VkResult anv_DestroyObject(