diff options
| author | 2020-04-16 21:12:33 -0400 | |
|---|---|---|
| committer | 2020-04-16 21:12:33 -0400 | |
| commit | 79c1269f0fd25e8aaf090cd1f4640a52237a3fd3 (patch) | |
| tree | cef3d04b0e14887bbcb6b021d42e2420ae1588a4 /src/video_core/texture_cache | |
| parent | Merge pull request #3600 from ReinUsesLisp/no-pointer-buf-cache (diff) | |
| parent | CMakeLists: Specify -Wextra on linux builds (diff) | |
| download | yuzu-79c1269f0fd25e8aaf090cd1f4640a52237a3fd3.tar.gz yuzu-79c1269f0fd25e8aaf090cd1f4640a52237a3fd3.tar.xz yuzu-79c1269f0fd25e8aaf090cd1f4640a52237a3fd3.zip | |
Merge pull request #3673 from lioncash/extra
CMakeLists: Specify -Wextra on linux builds
Diffstat (limited to 'src/video_core/texture_cache')
| -rw-r--r-- | src/video_core/texture_cache/surface_params.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/texture_cache/surface_params.cpp b/src/video_core/texture_cache/surface_params.cpp index 6f3ef45be..0de499946 100644 --- a/src/video_core/texture_cache/surface_params.cpp +++ b/src/video_core/texture_cache/surface_params.cpp | |||
| @@ -167,7 +167,6 @@ SurfaceParams SurfaceParams::CreateForImage(const FormatLookupTable& lookup_tabl | |||
| 167 | 167 | ||
| 168 | SurfaceParams SurfaceParams::CreateForDepthBuffer(Core::System& system) { | 168 | SurfaceParams SurfaceParams::CreateForDepthBuffer(Core::System& system) { |
| 169 | const auto& regs = system.GPU().Maxwell3D().regs; | 169 | const auto& regs = system.GPU().Maxwell3D().regs; |
| 170 | regs.zeta_width, regs.zeta_height, regs.zeta.format, regs.zeta.memory_layout.type; | ||
| 171 | SurfaceParams params; | 170 | SurfaceParams params; |
| 172 | params.is_tiled = regs.zeta.memory_layout.type == | 171 | params.is_tiled = regs.zeta.memory_layout.type == |
| 173 | Tegra::Engines::Maxwell3D::Regs::InvMemoryLayout::BlockLinear; | 172 | Tegra::Engines::Maxwell3D::Regs::InvMemoryLayout::BlockLinear; |
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 3e8663adf..69ca08fd1 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h | |||
| @@ -647,7 +647,8 @@ private: | |||
| 647 | break; | 647 | break; |
| 648 | } | 648 | } |
| 649 | const u32 offset = static_cast<u32>(surface->GetCpuAddr() - cpu_addr); | 649 | const u32 offset = static_cast<u32>(surface->GetCpuAddr() - cpu_addr); |
| 650 | const auto [x, y, z] = params.GetBlockOffsetXYZ(offset); | 650 | const auto offsets = params.GetBlockOffsetXYZ(offset); |
| 651 | const auto z = std::get<2>(offsets); | ||
| 651 | modified |= surface->IsModified(); | 652 | modified |= surface->IsModified(); |
| 652 | const CopyParams copy_params(0, 0, 0, 0, 0, z, 0, 0, params.width, params.height, | 653 | const CopyParams copy_params(0, 0, 0, 0, 0, z, 0, 0, params.width, params.height, |
| 653 | 1); | 654 | 1); |