From 29e6f17978ba24193ad13d8d95d7d028ae8b169a Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 1 Aug 2024 18:40:34 +0100 Subject: [PATCH] Fix non atomic image loads again --- .../CodeGen/Msl/Instructions/InstGenMemory.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs index 31f904787..005f5eafc 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Msl/Instructions/InstGenMemory.cs @@ -253,13 +253,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl.Instructions texCallBuilder.Append($"{prefix}4({string.Join(", ", cElems)})"); texCallBuilder.Append(", "); - texCallBuilder.Append(coordsBuilder); } + texCallBuilder.Append(coordsBuilder); + if (texOp.Inst == Instruction.ImageAtomic) { - // Atomics do (coord, value) - texCallBuilder.Append(coordsBuilder); texCallBuilder.Append(", "); AggregateType type = texOp.Format.GetComponentType();