From 3bbcf1d7ebfc83ed84e7297a1a7c5086385f2cb8 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 22 Aug 2020 22:07:04 -0700 Subject: Minor updates in DeviceContextVkImpl::UnmapBuffer --- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp index 2221b6b9..f9328d0a 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -1494,13 +1494,13 @@ void DeviceContextVkImpl::UnmapBuffer(IBuffer* pBuffer, MAP_TYPE MapType) if (MapType == MAP_READ) { - // We are currently using cache-coherent memory, so there is no need to invalidated mapped range + // We are currently using host-cached memory, so there is no need to invalidated mapped range } else if (MapType == MAP_WRITE) { - if (BuffDesc.Usage == USAGE_STAGING) + if (BuffDesc.Usage == USAGE_STAGING || BuffDesc.Usage == USAGE_UNIFIED) { - // We are currently using cache-coherent memory, so there is no need to flush mapped range + // We are currently using host-coherent memory, so there is no need to flush mapped range } else if (BuffDesc.Usage == USAGE_DYNAMIC) { -- cgit v1.2.3