aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
index dcefb591..e5ba04bc 100644
--- a/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
+++ b/Ryujinx.Graphics.Shader/Translation/EmitterContextInsts.cs
@@ -518,6 +518,15 @@ namespace Ryujinx.Graphics.Shader.Translation
public static Operand LoadConstant(this EmitterContext context, Operand a, Operand b)
{
+ if (a.Type == OperandType.Constant)
+ {
+ context.Config.SetUsedConstantBuffer(a.Value);
+ }
+ else
+ {
+ context.Config.SetUsedFeature(FeatureFlags.CbIndexing);
+ }
+
return context.Add(Instruction.LoadConstant, Local(), a, b);
}