diff options
author | Mat M <mathew1800@gmail.com> | 2020-03-17 22:29:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 22:29:22 +0100 |
commit | edb9cccb36dd23eaeae668315172ef0627cbedd8 (patch) | |
tree | 29323c2292475870325ebfe4ccdb049d1248f076 /src/video_core | |
parent | Merge pull request #3509 from ReinUsesLisp/astc-opts (diff) | |
parent | DirtyFlags: relax need to set render_targets as dirty (diff) | |
download | yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar.gz yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar.bz2 yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar.lz yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar.xz yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.tar.zst yuzu-edb9cccb36dd23eaeae668315172ef0627cbedd8.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/dirty_flags.cpp | 8 | ||||
-rw-r--r-- | src/video_core/dirty_flags.h | 2 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_state_tracker.cpp | 1 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_state_tracker.cpp | 2 |
4 files changed, 0 insertions, 13 deletions
diff --git a/src/video_core/dirty_flags.cpp b/src/video_core/dirty_flags.cpp index 4429f3405..e16075993 100644 --- a/src/video_core/dirty_flags.cpp +++ b/src/video_core/dirty_flags.cpp @@ -15,14 +15,6 @@ namespace VideoCommon::Dirty { using Tegra::Engines::Maxwell3D; -void SetupCommonOnWriteStores(Tegra::Engines::Maxwell3D::DirtyState::Flags& store) { - store[RenderTargets] = true; - store[ZetaBuffer] = true; - for (std::size_t i = 0; i < Maxwell3D::Regs::NumRenderTargets; ++i) { - store[ColorBuffer0 + i] = true; - } -} - void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables) { static constexpr std::size_t num_per_rt = NUM(rt[0]); static constexpr std::size_t begin = OFF(rt); diff --git a/src/video_core/dirty_flags.h b/src/video_core/dirty_flags.h index 0dbafd3ef..3f6c1d83a 100644 --- a/src/video_core/dirty_flags.h +++ b/src/video_core/dirty_flags.h @@ -44,8 +44,6 @@ void FillBlock(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables, std::size_ FillBlock(tables[1], begin, num, index_b); } -void SetupCommonOnWriteStores(Tegra::Engines::Maxwell3D::DirtyState::Flags& store); - void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables); } // namespace VideoCommon::Dirty diff --git a/src/video_core/renderer_opengl/gl_state_tracker.cpp b/src/video_core/renderer_opengl/gl_state_tracker.cpp index 3f3bdf812..255ac3147 100644 --- a/src/video_core/renderer_opengl/gl_state_tracker.cpp +++ b/src/video_core/renderer_opengl/gl_state_tracker.cpp @@ -238,7 +238,6 @@ void StateTracker::Initialize() { SetupDirtyMisc(tables); auto& store = dirty.on_write_stores; - SetupCommonOnWriteStores(store); store[VertexBuffers] = true; for (std::size_t i = 0; i < Regs::NumVertexArrays; ++i) { store[VertexBuffer0 + i] = true; diff --git a/src/video_core/renderer_vulkan/vk_state_tracker.cpp b/src/video_core/renderer_vulkan/vk_state_tracker.cpp index d74e68b63..94a89e388 100644 --- a/src/video_core/renderer_vulkan/vk_state_tracker.cpp +++ b/src/video_core/renderer_vulkan/vk_state_tracker.cpp @@ -90,8 +90,6 @@ void StateTracker::Initialize() { SetupDirtyBlendConstants(tables); SetupDirtyDepthBounds(tables); SetupDirtyStencilProperties(tables); - - SetupCommonOnWriteStores(dirty.on_write_stores); } void StateTracker::InvalidateCommandBufferState() { |