diff options
author | ReinUsesLisp <[email protected]> | 2021-04-24 18:27:25 -0300 |
---|---|---|
committer | ameerj <[email protected]> | 2021-07-22 21:51:29 -0400 |
commit | f4ace63957ee47c4e3e913954f07375d0391beae (patch) | |
tree | 43ed58cf34f507d7a5696ad7d5cd7d7df2e70940 /src/video_core/dirty_flags.cpp | |
parent | 20e86fd61512626e267824c1a5469084c2d36c7a (diff) | |
download | yuzu-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.cpp | 6 |
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 |