Fix compute shader code dumping (#1960)

This commit is contained in:
gdkchan 2021-01-26 14:27:18 -03:00 committed by GitHub
parent e453ba69f4
commit 9551bfdeeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);