Skip to content

Commit 9f0b616

Browse files
authored
Merge pull request KhronosGroup#2415 from squidbus/atomic64
Remove atomic usage for RG32Uint.
2 parents 68c6627 + bb99bc0 commit 9f0b616

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

MoltenVK/MoltenVK/GPUObjects/MVKBuffer.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296
if ( mvkIsAnyFlagEnabled(_buffer->getUsage(), VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT) ) {
297297
usage |= MTLTextureUsageShaderWrite;
298298
#if MVK_XCODE_15
299-
if (getMetalFeatures().nativeTextureAtomics && (_mtlPixelFormat == MTLPixelFormatR32Sint || _mtlPixelFormat == MTLPixelFormatR32Uint || _mtlPixelFormat == MTLPixelFormatRG32Uint))
299+
if (getMetalFeatures().nativeTextureAtomics && (_mtlPixelFormat == MTLPixelFormatR32Sint || _mtlPixelFormat == MTLPixelFormatR32Uint))
300300
usage |= MTLTextureUsageShaderAtomic;
301301
#endif
302302
}

MoltenVK/MoltenVK/GPUObjects/MVKPixelFormats.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@
748748
}
749749

750750
#if MVK_XCODE_15
751-
if (supportAtomics && (mtlFormat == MTLPixelFormatR32Uint || mtlFormat == MTLPixelFormatR32Sint || mtlFormat == MTLPixelFormatRG32Uint)) {
751+
if (supportAtomics && (mtlFormat == MTLPixelFormatR32Uint || mtlFormat == MTLPixelFormatR32Sint)) {
752752
mvkEnableFlags(mtlUsage, MTLTextureUsageShaderAtomic);
753753
}
754754
#endif
@@ -1542,7 +1542,6 @@
15421542
// Including this here so we remember to update this if support is added to Vulkan in the future.
15431543
bool atomic64 = noVulkanSupport && (gpuCaps.supportsApple9 || (gpuCaps.supportsApple8 && gpuCaps.supportsMac2));
15441544
enableMTLPixFmtCapsIf( atomic64, RG32Uint, Atomic );
1545-
enableMTLPixFmtCapsIf( atomic64, RG32Sint, Atomic );
15461545

15471546
setMTLPixFmtCapsIf( iosOnly8, RG32Float, RWCMB );
15481547
setMTLPixFmtCapsIf( iosOnly6, RG32Float, RWCB );

0 commit comments

Comments
 (0)