From 9551bfdeebee663f119b4fbaa7196ce8d810f41a Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 26 Jan 2021 14:27:18 -0300 Subject: [PATCH] Fix compute shader code dumping (#1960) --- Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs index 1dbe1805a..f3e4679b8 100644 --- a/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs +++ b/Ryujinx.Graphics.Gpu/Shader/ShaderCache.cs @@ -759,7 +759,7 @@ namespace Ryujinx.Graphics.Gpu.Shader { byte[] code = _context.MemoryManager.GetSpan(translatorContext.Address, translatorContext.Size).ToArray(); - _dumper.Dump(code, compute: false, out string fullPath, out string codePath); + _dumper.Dump(code, translatorContext.Stage == ShaderStage.Compute, out string fullPath, out string codePath); ShaderProgram program = translatorContext.Translate(out ShaderProgramInfo shaderProgramInfo);