code: Run clang-format
This commit is contained in:
@ -3,10 +3,10 @@
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "video_core/texture/texture_decode.h"
|
||||
#include "video_core/rasterizer_cache/morton_swizzle.h"
|
||||
#include "video_core/rasterizer_cache/surface_params.h"
|
||||
#include "video_core/rasterizer_cache/utils.h"
|
||||
#include "video_core/texture/texture_decode.h"
|
||||
|
||||
namespace VideoCore {
|
||||
|
||||
@ -51,18 +51,16 @@ void SwizzleTexture(const SurfaceParams& swizzle_info, PAddr start_addr, PAddr e
|
||||
std::span<std::byte> source_linear, std::span<std::byte> dest_tiled) {
|
||||
const u32 func_index = static_cast<u32>(swizzle_info.pixel_format);
|
||||
const MortonFunc SwizzleImpl = SWIZZLE_TABLE[func_index];
|
||||
SwizzleImpl(swizzle_info.width, swizzle_info.height,
|
||||
start_addr - swizzle_info.addr, end_addr - swizzle_info.addr,
|
||||
source_linear, dest_tiled);
|
||||
SwizzleImpl(swizzle_info.width, swizzle_info.height, start_addr - swizzle_info.addr,
|
||||
end_addr - swizzle_info.addr, source_linear, dest_tiled);
|
||||
}
|
||||
|
||||
void UnswizzleTexture(const SurfaceParams& unswizzle_info, PAddr start_addr, PAddr end_addr,
|
||||
std::span<std::byte> source_tiled, std::span<std::byte> dest_linear) {
|
||||
const u32 func_index = static_cast<u32>(unswizzle_info.pixel_format);
|
||||
const MortonFunc UnswizzleImpl = UNSWIZZLE_TABLE[func_index];
|
||||
UnswizzleImpl(unswizzle_info.width, unswizzle_info.height,
|
||||
start_addr - unswizzle_info.addr, end_addr - unswizzle_info.addr,
|
||||
dest_linear, source_tiled);
|
||||
UnswizzleImpl(unswizzle_info.width, unswizzle_info.height, start_addr - unswizzle_info.addr,
|
||||
end_addr - unswizzle_info.addr, dest_linear, source_tiled);
|
||||
}
|
||||
|
||||
} // namespace VideoCore
|
||||
|
Reference in New Issue
Block a user