diff options
author | Kurochi51 <andrei5125@gmail.com> | 2023-06-22 22:35:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 21:35:06 +0200 |
commit | d604e982276105db043ca495a16f1b047bb2d0f6 (patch) | |
tree | 5a117660f6db7e1bcd4f5968ac64dd88e59ef651 /src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs | |
parent | 58907e2c290473326e5ab74bdfe1429b8a518ba4 (diff) |
Fix regression introduced by 1.1.1733 on Intel GPUs (#5311)1.1.900
* Fix regression introduced by 1.1733 on Intel iGPUs
* Should have actually figured the variable, oops.
* maybe something goes wrong here? honestly lost
* Shader cache bump
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs')
-rw-r--r-- | src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs b/src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs index bb60d274..76b2e078 100644 --- a/src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs +++ b/src/Ryujinx.Graphics.Shader/Instructions/InstEmitAttribute.cs @@ -166,7 +166,7 @@ namespace Ryujinx.Graphics.Shader.Instructions { // gl_FrontFacing sometimes has incorrect (flipped) values depending how it is accessed on Intel GPUs. // This weird trick makes it behave. - res = context.ICompareLess(context.INegate(context.IConvertS32ToFP32(res)), Const(0)); + res = context.ICompareLess(context.INegate(context.FP32ConvertToS32(context.ConditionalSelect(res, ConstF(1f), ConstF(0f)))), Const(0)); } } |