diff options
| -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 { | |||
| 15 | 15 | ||
| 16 | using Tegra::Engines::Maxwell3D; | 16 | using Tegra::Engines::Maxwell3D; |
| 17 | 17 | ||
| 18 | void SetupCommonOnWriteStores(Tegra::Engines::Maxwell3D::DirtyState::Flags& store) { | ||
| 19 | store[RenderTargets] = true; | ||
| 20 | store[ZetaBuffer] = true; | ||
| 21 | for (std::size_t i = 0; i < Maxwell3D::Regs::NumRenderTargets; ++i) { | ||
| 22 | store[ColorBuffer0 + i] = true; | ||
| 23 | } | ||
| 24 | } | ||
| 25 | |||
| 26 | void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables) { | 18 | void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables) { |
| 27 | static constexpr std::size_t num_per_rt = NUM(rt[0]); | 19 | static constexpr std::size_t num_per_rt = NUM(rt[0]); |
| 28 | static constexpr std::size_t begin = OFF(rt); | 20 | 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_ | |||
| 44 | FillBlock(tables[1], begin, num, index_b); | 44 | FillBlock(tables[1], begin, num, index_b); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | void SetupCommonOnWriteStores(Tegra::Engines::Maxwell3D::DirtyState::Flags& store); | ||
| 48 | |||
| 49 | void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables); | 47 | void SetupDirtyRenderTargets(Tegra::Engines::Maxwell3D::DirtyState::Tables& tables); |
| 50 | 48 | ||
| 51 | } // namespace VideoCommon::Dirty | 49 | } // 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() { | |||
| 238 | SetupDirtyMisc(tables); | 238 | SetupDirtyMisc(tables); |
| 239 | 239 | ||
| 240 | auto& store = dirty.on_write_stores; | 240 | auto& store = dirty.on_write_stores; |
| 241 | SetupCommonOnWriteStores(store); | ||
| 242 | store[VertexBuffers] = true; | 241 | store[VertexBuffers] = true; |
| 243 | for (std::size_t i = 0; i < Regs::NumVertexArrays; ++i) { | 242 | for (std::size_t i = 0; i < Regs::NumVertexArrays; ++i) { |
| 244 | store[VertexBuffer0 + i] = true; | 243 | 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() { | |||
| 90 | SetupDirtyBlendConstants(tables); | 90 | SetupDirtyBlendConstants(tables); |
| 91 | SetupDirtyDepthBounds(tables); | 91 | SetupDirtyDepthBounds(tables); |
| 92 | SetupDirtyStencilProperties(tables); | 92 | SetupDirtyStencilProperties(tables); |
| 93 | |||
| 94 | SetupCommonOnWriteStores(dirty.on_write_stores); | ||
| 95 | } | 93 | } |
| 96 | 94 | ||
| 97 | void StateTracker::InvalidateCommandBufferState() { | 95 | void StateTracker::InvalidateCommandBufferState() { |