code: Run clang-format

This commit is contained in:
GPUCode
2022-10-07 12:13:27 +03:00
parent 6f3fc32a93
commit 915406354c
82 changed files with 1683 additions and 1950 deletions

View File

@ -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