diff options
| author | gdk <gab.dark.100@gmail.com> | 2019-11-19 11:41:45 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 3ca675223a495f7d0a9d2130b8d88d9c5c79747e (patch) | |
| tree | 72b36c06b9429be939f084e91a942516e42165d8 /Ryujinx.Graphics.Gpu/Shader | |
| parent | 6a8ba6d60080ca15fc25a6812998b19e63171610 (diff) | |
Remove TranslatorConfig struct
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Shader')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index 3fdd28b9..dd40bb72 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -197,11 +197,9 @@ namespace Ryujinx.Graphics.Gpu.Shader TranslationFlags.DebugMode | TranslationFlags.Unspecialized; - TranslationConfig translationConfig = new TranslationConfig(0x10000, _dumper.CurrentDumpIndex, flags); - Span<byte> code = _context.MemoryAccessor.Read(gpuVa, MaxProgramSize); - program = Translator.Translate(code, translationConfig); + program = Translator.Translate(code, flags); int[] codeCached = MemoryMarshal.Cast<byte, int>(code.Slice(0, program.Size)).ToArray(); @@ -233,8 +231,6 @@ namespace Ryujinx.Graphics.Gpu.Shader TranslationFlags.DebugMode | TranslationFlags.Unspecialized; - TranslationConfig translationConfig = new TranslationConfig(0x10000, _dumper.CurrentDumpIndex, flags); - int[] codeCached = null; if (gpuVaA != 0) @@ -242,7 +238,7 @@ namespace Ryujinx.Graphics.Gpu.Shader Span<byte> codeA = _context.MemoryAccessor.Read(gpuVaA, MaxProgramSize); Span<byte> codeB = _context.MemoryAccessor.Read(gpuVa, MaxProgramSize); - program = Translator.Translate(codeA, codeB, translationConfig); + program = Translator.Translate(codeA, codeB, flags); // TODO: We should also check "codeA" into account. codeCached = MemoryMarshal.Cast<byte, int>(codeB.Slice(0, program.Size)).ToArray(); @@ -262,7 +258,7 @@ namespace Ryujinx.Graphics.Gpu.Shader { Span<byte> code = _context.MemoryAccessor.Read(gpuVa, MaxProgramSize); - program = Translator.Translate(code, translationConfig); + program = Translator.Translate(code, flags); codeCached = MemoryMarshal.Cast<byte, int>(code.Slice(0, program.Size)).ToArray(); |
