diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-12-09 17:41:40 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 17:41:40 -0300 |
commit | 459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92 (patch) | |
tree | 3f5f5fd83c0286724bc4d2e7ab4db1dc0e4ab2d6 /Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | |
parent | 539b22ef7b2c83617e4a57adf9433bf84bb1b638 (diff) |
Fix HasUnalignedStorageBuffers value when buffers are always unaligned (#4078)1.1.458
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs')
-rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs index b611f4e7..572f7fb0 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Threed/StateUpdater.cs @@ -304,14 +304,12 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed /// </summary> private void CommitBindings() { - var buffers = _channel.BufferManager; - var hasUnaligned = buffers.HasUnalignedStorageBuffers; - UpdateStorageBuffers(); - if (!_channel.TextureManager.CommitGraphicsBindings(_shaderSpecState) || (buffers.HasUnalignedStorageBuffers != hasUnaligned)) + bool unalignedChanged = _currentSpecState.SetHasUnalignedStorageBuffer(_channel.BufferManager.HasUnalignedStorageBuffers); + + if (!_channel.TextureManager.CommitGraphicsBindings(_shaderSpecState) || unalignedChanged) { - _currentSpecState.SetHasUnalignedStorageBuffer(buffers.HasUnalignedStorageBuffers); // Shader must be reloaded. _vtgWritesRtLayer should not change. UpdateShaderState(); } |