From f4d5aa73fb72a483f04bb6b014e80192331504ea Mon Sep 17 00:00:00 2001 From: Yong He Date: Sat, 2 Nov 2024 20:35:22 -0700 Subject: Revert uint<->int implicit cast cost to prefer promotion to unsigned. (#5480) --- tests/metal/atomic-texture-texture1d.slang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/metal') diff --git a/tests/metal/atomic-texture-texture1d.slang b/tests/metal/atomic-texture-texture1d.slang index 70f639cb5..8a47af8ee 100644 --- a/tests/metal/atomic-texture-texture1d.slang +++ b/tests/metal/atomic-texture-texture1d.slang @@ -128,7 +128,7 @@ void test() InterlockedOr(intTexture1DArray[0], valInt, originalValueInt); InterlockedXor(intTexture1DArray[0], valInt, originalValueInt); InterlockedExchange(intTexture1DArray[0], valInt, originalValueInt); - InterlockedCompareExchange(intTexture1DArray[0], valInt, compareValueInt, originalValueUInt); + InterlockedCompareExchange(intTexture1DArray[0], valInt, compareValueInt, originalValueInt); InterlockedCompareStore(intTexture1DArray[0], valUInt, compareValueUInt); InterlockedAdd(uintTexture1DArray[0], valUInt); -- cgit v1.2.3