diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-03-03 11:02:08 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-03 15:02:08 +0100 |
| commit | dc97457bf0121b9383054ca14d3c525b56b92634 (patch) | |
| tree | ecd78f76805b16bb01ec8d81f99f1cb3a2a43895 /Ryujinx.Graphics.Shader/IntermediateRepresentation | |
| parent | 3045c1a18644e50fd843dfce07d809e46d923ada (diff) | |
Initial support for double precision shader instructions. (#963)
* Implement DADD, DFMA and DMUL shader instructions
* Rename FP to FP32
* Correct double immediate
* Classic mistake
Diffstat (limited to 'Ryujinx.Graphics.Shader/IntermediateRepresentation')
| -rw-r--r-- | Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs b/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs index 7108112c..4a6c3a78 100644 --- a/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs +++ b/Ryujinx.Graphics.Shader/IntermediateRepresentation/Instruction.cs @@ -46,6 +46,8 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation CompareLessU32, CompareNotEqual, ConditionalSelect, + ConvertFP32ToFP64, + ConvertFP64ToFP32, ConvertFPToS32, ConvertFPToU32, ConvertS32ToFP, @@ -122,9 +124,10 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation Count, - FP = 1 << 16, + FP32 = 1 << 16, + FP64 = 1 << 17, - MrShift = 17, + MrShift = 18, MrGlobal = 0 << MrShift, MrShared = 1 << MrShift, |
