From 061c10ea691360b7f450b0a85475116d5ad229ae Mon Sep 17 00:00:00 2001 From: kd-11 Date: Fri, 22 Sep 2023 13:32:28 +0300 Subject: [PATCH] vk: Fix memory initialization order in RCB/RDB path --- rpcs3/Emu/RSX/VK/VKRenderTargets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp index 7ac76fe8f7..2f87f175ab 100644 --- a/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp +++ b/rpcs3/Emu/RSX/VK/VKRenderTargets.cpp @@ -713,8 +713,8 @@ 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); + vk::load_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; const auto linear_data_scratch_offset = 0;