From 698702cd4a6a3c13d9e6d1ee5ce2a908ef83f611 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 24 Jan 2020 20:01:43 +0300 Subject: [PATCH] vk: Fix DMA data leak - There still does not exist a ranged flush implementation which is required. - TODO: Implement this properly --- rpcs3/Emu/RSX/VK/VKTextureCache.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcs3/Emu/RSX/VK/VKTextureCache.h b/rpcs3/Emu/RSX/VK/VKTextureCache.h index c8937db324..5f0f2f2ce6 100644 --- a/rpcs3/Emu/RSX/VK/VKTextureCache.h +++ b/rpcs3/Emu/RSX/VK/VKTextureCache.h @@ -246,6 +246,14 @@ namespace vk } else { + if (context != rsx::texture_upload_context::dma) + { + // Partial load for the bits outside the existing image + // NOTE: A true DMA section would have been prepped beforehand + // TODO: Parial range load/flush + vk::load_dma(valid_range.start, section_length); + } + std::vector copy; copy.reserve(transfer_height);