From c3909b5b9fbb38c27f80a6778d9960ecb93cb48d Mon Sep 17 00:00:00 2001 From: BeastLe9enD Date: Sun, 26 Feb 2023 19:07:36 +0100 Subject: [PATCH] Fix OpAtomicFMaxEXT being used inside atomic_f_add --- crates/spirv-std/src/arch/atomics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/spirv-std/src/arch/atomics.rs b/crates/spirv-std/src/arch/atomics.rs index bb0f75992e..e03ebaa4c4 100644 --- a/crates/spirv-std/src/arch/atomics.rs +++ b/crates/spirv-std/src/arch/atomics.rs @@ -598,7 +598,7 @@ pub unsafe fn atomic_f_add( "%scope = OpConstant %u32 {scope}", "%semantics = OpConstant %u32 {semantics}", "%value = OpLoad _ {value}", - "%old = OpAtomicFMaxEXT _ {ptr} %scope %semantics %value", + "%old = OpAtomicFAddEXT _ {ptr} %scope %semantics %value", "OpStore {old} %old", scope = const SCOPE, semantics = const SEMANTICS,