diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-07-10 21:38:31 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-07-17 23:29:49 +0200 |
commit | f2e7b29c14e0207e0476299d69dac7ed4c213c74 (patch) | |
tree | 670339fbdcb8b1cfa8e14a5c4e19cc03199a595f /src/video_core/texture_cache/texture_cache.h | |
parent | Merge pull request #2740 from lioncash/bra (diff) | |
download | yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar.gz yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar.bz2 yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar.lz yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar.xz yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.tar.zst yuzu-f2e7b29c14e0207e0476299d69dac7ed4c213c74.zip |
Diffstat (limited to 'src/video_core/texture_cache/texture_cache.h')
-rw-r--r-- | src/video_core/texture_cache/texture_cache.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/video_core/texture_cache/texture_cache.h b/src/video_core/texture_cache/texture_cache.h index 7f9623c62..8225022a9 100644 --- a/src/video_core/texture_cache/texture_cache.h +++ b/src/video_core/texture_cache/texture_cache.h @@ -116,10 +116,10 @@ public: std::lock_guard lock{mutex}; auto& maxwell3d = system.GPU().Maxwell3D(); - if (!maxwell3d.dirty_flags.zeta_buffer) { + if (!maxwell3d.dirty.depth_buffer) { return depth_buffer.view; } - maxwell3d.dirty_flags.zeta_buffer = false; + maxwell3d.dirty.depth_buffer = false; const auto& regs{maxwell3d.regs}; const auto gpu_addr{regs.zeta.Address()}; @@ -145,10 +145,10 @@ public: std::lock_guard lock{mutex}; ASSERT(index < Tegra::Engines::Maxwell3D::Regs::NumRenderTargets); auto& maxwell3d = system.GPU().Maxwell3D(); - if (!maxwell3d.dirty_flags.color_buffer[index]) { + if (!maxwell3d.dirty.render_target[index]) { return render_targets[index].view; } - maxwell3d.dirty_flags.color_buffer.reset(index); + maxwell3d.dirty.render_target[index] = false; const auto& regs{maxwell3d.regs}; if (index >= regs.rt_control.count || regs.rt[index].Address() == 0 || @@ -272,12 +272,19 @@ protected: void ManageRenderTargetUnregister(TSurface& surface) { auto& maxwell3d = system.GPU().Maxwell3D(); +<<<<<<< HEAD const u32 index = surface->GetRenderTarget(); if (index == DEPTH_RT) { maxwell3d.dirty_flags.zeta_buffer = true; +======= + u32 index = surface->GetRenderTarget(); + if (index == 8) { + maxwell3d.dirty.depth_buffer = true; +>>>>>>> Maxwell3D: Rework the dirty system to be more consistant and scaleable } else { - maxwell3d.dirty_flags.color_buffer.set(index, true); + maxwell3d.dirty.render_target[index] = true; } + maxwell3d.dirty.render_settings = true; } void Register(TSurface surface) { |