diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-02-05 18:52:57 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-05 18:52:57 -0300 |
commit | 43081c16c48d73dfd585d951281fcbd60bebccbc (patch) | |
tree | dfa66214d704e783f0aa15057a0f4db4b41ace32 /Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | |
parent | 780627e7b0bc6137e72674d146e121a6def0fe13 (diff) |
Insert bitcast for assignment of fragment integer outputs on GLSL (#4369)1.1.600
* Insert bitcast for assignment of fragment integer outputs on GLSL
* Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs')
-rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 10 |
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); |