summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-14 16:47:33 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-03-14 16:47:33 +0100
commit380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa (patch)
tree4fb064d686386b6bdee58e7f0f5cac2765ac9056 /src
parentMerge pull request #3491 from ReinUsesLisp/polygon-modes (diff)
downloadyuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar.gz
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar.bz2
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar.lz
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar.xz
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.tar.zst
yuzu-380fc8d2e1db40c09ac4f1ec3fd3cd69bc592dfa.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/dirty_flags.cpp8
-rw-r--r--src/video_core/dirty_flags.h2
-rw-r--r--src/video_core/renderer_opengl/gl_state_tracker.cpp1
-rw-r--r--src/video_core/renderer_vulkan/vk_state_tracker.cpp2
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() {