From 3360740250cba360db98e101ca6a99259fa2b41b Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 1 Aug 2024 14:39:11 +0100 Subject: [PATCH] Fix image atomics --- .../CodeGen/Msl/Instructions/InstGenMemory.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs index da8deb706..d88464712 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs @@ -255,19 +255,11 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions } texCallBuilder.Append(coordsBuilder); + texCallBuilder.Append(')'); - if (texOp.Inst == Instruction.ImageAtomic) + if (texOp.Inst == Instruction.ImageLoad) { - // TODO: Finish atomic stuff - } - else - { - texCallBuilder.Append(')'); - - if (texOp.Inst == Instruction.ImageLoad) - { - texCallBuilder.Append(GetMaskMultiDest(texOp.Index)); - } + texCallBuilder.Append(GetMaskMultiDest(texOp.Index)); } return texCallBuilder.ToString();