1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

vk: Load DMA before decode operation

This commit is contained in:
kd-11 2023-09-14 20:24:44 +03:00 committed by kd-11
parent ca054644ef
commit 59812b947a

View File

@ -693,6 +693,7 @@ namespace vk
const auto max_content_size = tiled_region.tile->pitch * utils::align<u32>(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;