diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-03 22:28:44 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | a31fced221187850c8447d5d8142ca85f118b43e (patch) | |
| tree | dc10aec8d1b7a7c339b6589ced4754e8b3e831fd /Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs | |
| parent | 3ab5c23f492183ae6f5cf8f62c4239bf181d2630 (diff) | |
Remove some unused constants and other code
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs b/Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs index 06db2a80..3d89faf6 100644 --- a/Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs +++ b/Ryujinx.Graphics.Shader/Translation/Optimizations/GlobalToStorage.cs @@ -9,9 +9,6 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations { private const int StorageDescsBaseOffset = 0x44; // In words. - private const int UbeStorageDescsBaseOffset = 0x84; // In words. - private const int UbeStorageMaxCount = 14; - private const int StorageDescSize = 4; // In words. private const int StorageMaxCount = 16; @@ -23,11 +20,6 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations int sbEnd = sbStart + StorageDescsSize; - // This one is only used on compute shaders. - // Compute shaders uses two separate sets of storage. - int ubeSbStart = UbeStorageDescsBaseOffset; - int ubeSbEnd = UbeStorageDescsBaseOffset + StorageDescSize * UbeStorageMaxCount; - for (LinkedListNode<INode> node = block.Operations.First; node != null; node = node.Next) { if (!(node.Value is Operation operation)) @@ -44,11 +36,6 @@ namespace Ryujinx.Graphics.Shader.Translation.Optimizations { int storageIndex = SearchForStorageBase(asgOperation, sbStart, sbEnd); - /*if (storageIndex < 0 && stage == ShaderStage.Compute) - { - storageIndex = SearchForStorageBase(asgOperation, ubeSbStart, ubeSbEnd); - }*/ - if (storageIndex >= 0) { node = ReplaceGlobalWithStorage(node, storageIndex); |
