summaryrefslogtreecommitdiffstats
path: root/src/video_core/texture_cache/texture_cache.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-16 08:12:38 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-16 08:19:32 +0100
commit6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7 (patch)
tree06b9087f7921595d336b98503c0e9fcf25694775 /src/video_core/texture_cache/texture_cache.h
parentMerge pull request #3401 from FernandoS27/synchronization (diff)
downloadyuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar.gz
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar.bz2
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar.lz
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar.xz
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.tar.zst
yuzu-6a0220b2e1a0d7692b8f32f66ae7bc86cb63fab7.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/texture_cache/texture_cache.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h
index f4c015635..a850e7593 100644
--- a/src/video_core/texture_cache/texture_cache.h
+++ b/src/video_core/texture_cache/texture_cache.h
@@ -160,10 +160,7 @@ public:
SetEmptyDepthBuffer();
return {};
}
- const auto depth_params{SurfaceParams::CreateForDepthBuffer(
- system, regs.zeta_width, regs.zeta_height, regs.zeta.format,
- regs.zeta.memory_layout.block_width, regs.zeta.memory_layout.block_height,
- regs.zeta.memory_layout.block_depth, regs.zeta.memory_layout.type)};
+ const auto depth_params{SurfaceParams::CreateForDepthBuffer(system)};
auto surface_view = GetSurface(gpu_addr, cache_addr, depth_params, preserve_contents, true);
if (depth_buffer.target)
depth_buffer.target->MarkAsRenderTarget(false, NO_RT);