aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/dirty_flags.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2021-04-24 18:27:25 -0300
committerameerj <[email protected]>2021-07-22 21:51:29 -0400
commitf4ace63957ee47c4e3e913954f07375d0391beae (patch)
tree43ed58cf34f507d7a5696ad7d5cd7d7df2e70940 /src/video_core/dirty_flags.cpp
parent20e86fd61512626e267824c1a5469084c2d36c7a (diff)
downloadyuzu-mainline-f4ace63957ee47c4e3e913954f07375d0391beae.tar.gz
yuzu-mainline-f4ace63957ee47c4e3e913954f07375d0391beae.zip
shader: Accelerate pipeline transitions and use dirty flags for shaders
Diffstat (limited to 'src/video_core/dirty_flags.cpp')
-rw-r--r--src/video_core/dirty_flags.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/dirty_flags.cpp b/src/video_core/dirty_flags.cpp
index 7149af290..b1be065c3 100644
--- a/src/video_core/dirty_flags.cpp
+++ b/src/video_core/dirty_flags.cpp
@@ -58,6 +58,11 @@ void SetupDirtyRenderTargets(Maxwell3D::DirtyState::Tables& tables) {
FillBlock(table, OFF(zeta), NUM(zeta), flag);
}
}
+
+void SetupDirtyShaders(Maxwell3D::DirtyState::Tables& tables) {
+ FillBlock(tables[0], OFF(shader_config[0]),
+ NUM(shader_config[0]) * Maxwell3D::Regs::MaxShaderProgram, Shaders);
+}
} // Anonymous namespace
void SetupDirtyFlags(Maxwell3D::DirtyState::Tables& tables) {
@@ -65,6 +70,7 @@ void SetupDirtyFlags(Maxwell3D::DirtyState::Tables& tables) {
SetupIndexBuffer(tables);
SetupDirtyDescriptors(tables);
SetupDirtyRenderTargets(tables);
+ SetupDirtyShaders(tables);
}
} // namespace VideoCommon::Dirty