From 142cededd4db2ff4f83a4833580d343a4f0a8cde Mon Sep 17 00:00:00 2001 From: riperiperi Date: Tue, 31 Aug 2021 06:51:57 +0100 Subject: Implement Shader Instructions SUATOM and SURED (#2090) * Initial Implementation * Further improvements (no support for float/64-bit types) * Merge atomic and reduce instructions, add missing format switch * Fix rebase issues. * Not used. * Whoops. Fixed. * Partial implementation of inc/dec, cleanup and TODOs * Remove testing path * Address Feedback --- Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs') diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs index b9f1b4ef..deea6c72 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs @@ -362,7 +362,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl } else if (operation is AstTextureOperation texOp && (texOp.Inst == Instruction.ImageLoad || - texOp.Inst == Instruction.ImageStore)) + texOp.Inst == Instruction.ImageStore || + texOp.Inst == Instruction.ImageAtomic)) { return texOp.Format.GetComponentType(); } -- cgit v1.2.3