diff options
author | bunnei <bunneidev@gmail.com> | 2020-02-24 16:14:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 16:14:50 +0100 |
commit | e22ad52cdb18842a12037e8b85d7be854b95206c (patch) | |
tree | f60ec07ce5a4e6f56a1c9c5e18884de52de81334 /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #3424 from ReinUsesLisp/spirv-layer (diff) | |
parent | texture_cache: Implement layered framebuffer attachments (diff) | |
download | yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.gz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.bz2 yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.lz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.xz yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.tar.zst yuzu-e22ad52cdb18842a12037e8b85d7be854b95206c.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 5 |
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 0d105d386..c70e4aec2 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); |