aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
index 080f1708..ce1ab50e 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
@@ -487,6 +487,16 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
return type.ToAggregateType();
}
+ else if (context.Config.Stage == ShaderStage.Fragment && isAsgDest &&
+ operand.Value >= AttributeConsts.FragmentOutputColorBase &&
+ operand.Value < AttributeConsts.FragmentOutputColorEnd)
+ {
+ int location = (operand.Value - AttributeConsts.FragmentOutputColorBase) / 16;
+
+ AttributeType type = context.Config.GpuAccessor.QueryFragmentOutputType(location);
+
+ return type.ToAggregateType();
+ }
}
return OperandInfo.GetVarType(operand);