From 59812b947a78fe444c514b837869ef7c429b6c10 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 14 Sep 2023 20:24:44 +0300 Subject: [PATCH] vk: Load DMA before decode operation --- rpcs3/Emu/RSX/VK/VKRenderTargets.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp index db9a51962e..74b7f565e4 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp @@ -693,6 +693,7 @@ namespace vk const auto max_content_size = tiled_region.tile->pitch * utils::align(subres.height_in_block, 64); const auto section_length = std::min(max_content_size, available_tile_size); + vk::load_dma(range.start, section_length); const auto dma_mapping = vk::map_dma(range.start, section_length); const auto scratch_buf = vk::get_scratch_buffer(cmd, section_length * 3); // 0 = linear data, 1 = padding (deswz), 2 = tiled data const auto tiled_data_scratch_offset = section_length * 2;