vk: Fix DMA data leak

- There still does not exist a ranged flush implementation which is required.
- TODO: Implement this properly
This commit is contained in:
kd-11 2020-01-24 20:01:43 +03:00 committed by kd-11
parent 1166ae19bb
commit 698702cd4a

View File

@ -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<VkBufferCopy> copy;
copy.reserve(transfer_height);