From 11a1442229e097ddeb092afd4f0bf444c5042b10 Mon Sep 17 00:00:00 2001 From: Frederic L Date: Mon, 19 Nov 2018 04:53:03 +0100 Subject: Eliminated unnessessary memory allocation and copy (#1702) --- src/video_core/textures/decoders.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/video_core/textures/decoders.h') diff --git a/src/video_core/textures/decoders.h b/src/video_core/textures/decoders.h index ba065510b..f4ef7c73e 100644 --- a/src/video_core/textures/decoders.h +++ b/src/video_core/textures/decoders.h @@ -16,6 +16,13 @@ inline std::size_t GetGOBSize() { return 512; } +/** + * Unswizzles a swizzled texture without changing its format. + */ +void UnswizzleTexture(u8* unswizzled_data, VAddr address, u32 tile_size_x, u32 tile_size_y, + u32 bytes_per_pixel, u32 width, u32 height, u32 depth, + u32 block_height = TICEntry::DefaultBlockHeight, + u32 block_depth = TICEntry::DefaultBlockHeight); /** * Unswizzles a swizzled texture without changing its format. */ -- cgit v1.2.3