diff options
author | gdkchan <gab.dark.100@gmail.com> | 2022-07-23 11:15:58 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 11:15:58 -0300 |
commit | b34de74f81ef73a78d43d169b9f1ce7f175035b5 (patch) | |
tree | 5a5428e941c22fcac24e6eb497f54eded8921b73 /Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs | |
parent | 5811d121dfc10239ce2f14e36b2addb37df3c83c (diff) |
Avoid adding shader buffer descriptors for constant buffers that are not used (#3478)1.1.183
* Avoid adding shader buffer descriptors for constant buffers that are not used
* Shader cache version
Diffstat (limited to 'Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs')
-rw-r--r-- | Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs index 2a39d021..05325144 100644 --- a/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs +++ b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramContext.cs @@ -300,6 +300,11 @@ namespace Ryujinx.Graphics.Shader.StructuredIr if (operand.Type != OperandType.LocalVariable) { + if (operand.Type == OperandType.ConstantBuffer) + { + Config.SetUsedConstantBuffer(operand.GetCbufSlot()); + } + return new AstOperand(operand); } |