diff options
| author | 2019-03-13 16:32:33 -0300 | |
|---|---|---|
| committer | 2019-03-13 16:35:21 -0300 | |
| commit | ffe2e50458dabee8a3415dd8919685bf774252b1 (patch) | |
| tree | f08c26c10579f3125366bb0fa42edd2a40d8aab7 /src/video_core/morton.cpp | |
| parent | video_core/morton: Remove unused parameter in MortonSwizzle (diff) | |
| download | yuzu-ffe2e50458dabee8a3415dd8919685bf774252b1.tar.gz yuzu-ffe2e50458dabee8a3415dd8919685bf774252b1.tar.xz yuzu-ffe2e50458dabee8a3415dd8919685bf774252b1.zip | |
video_core/morton: Use enum to describe MortonCopyPixels128 mode
Diffstat (limited to 'src/video_core/morton.cpp')
| -rw-r--r-- | src/video_core/morton.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/morton.cpp b/src/video_core/morton.cpp index e980bb8be..9692ce143 100644 --- a/src/video_core/morton.cpp +++ b/src/video_core/morton.cpp | |||
| @@ -287,8 +287,9 @@ void MortonSwizzle(MortonSwizzleMode mode, Surface::PixelFormat format, u32 stri | |||
| 287 | tile_width_spacing, buffer, addr); | 287 | tile_width_spacing, buffer, addr); |
| 288 | } | 288 | } |
| 289 | 289 | ||
| 290 | void MortonCopyPixels128(u32 width, u32 height, u32 bytes_per_pixel, u32 linear_bytes_per_pixel, | 290 | void MortonCopyPixels128(MortonSwizzleMode mode, u32 width, u32 height, u32 bytes_per_pixel, |
| 291 | u8* morton_data, u8* linear_data, bool morton_to_linear) { | 291 | u32 linear_bytes_per_pixel, u8* morton_data, u8* linear_data) { |
| 292 | const bool morton_to_linear = mode == MortonSwizzleMode::MortonToLinear; | ||
| 292 | u8* data_ptrs[2]; | 293 | u8* data_ptrs[2]; |
| 293 | for (u32 y = 0; y < height; ++y) { | 294 | for (u32 y = 0; y < height; ++y) { |
| 294 | for (u32 x = 0; x < width; ++x) { | 295 | for (u32 x = 0; x < width; ++x) { |