mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 16:40:06 +00:00
gl_rasterizer_cache: Remove unnecessary temporary buffer with unswizzle.
This commit is contained in:
parent
43b9494a0f
commit
2a035a1f6f
@ -354,12 +354,9 @@ void MortonCopy(u32 stride, u32 block_height, u32 height, u32 block_depth, u32 d
|
|||||||
const std::size_t size_to_copy{std::min(gl_buffer_size, data.size())};
|
const std::size_t size_to_copy{std::min(gl_buffer_size, data.size())};
|
||||||
memcpy(gl_buffer, data.data(), size_to_copy);
|
memcpy(gl_buffer, data.data(), size_to_copy);
|
||||||
} else {
|
} else {
|
||||||
std::vector<u8> data(gl_buffer_size);
|
|
||||||
Tegra::Texture::CopySwizzledData(stride / tile_size, height / tile_size, depth,
|
Tegra::Texture::CopySwizzledData(stride / tile_size, height / tile_size, depth,
|
||||||
bytes_per_pixel, bytes_per_pixel, data.data(), gl_buffer,
|
bytes_per_pixel, bytes_per_pixel, Memory::GetPointer(addr),
|
||||||
false, block_height, block_depth);
|
gl_buffer, false, block_height, block_depth);
|
||||||
const std::size_t size_to_copy{std::min(gl_buffer_size, data.size())};
|
|
||||||
memcpy(Memory::GetPointer(addr), data.data(), size_to_copy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user