You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Intel Mac with Radeon Pro 560, during the aovInputTask texture creation for the depth buffer, the following error is printed and the texture creation crashes.
-[MTLTextureDescriptorInternal validateWithDevice:] failed assertion Texture Descriptor Validation MTLTextureDescriptor: Depth, Stencil, DepthStencil textures cannot be allocated with MTLStorageModeShared or MTLStorageModeManaged on this device.
Restored the earlier behavior of allocating textures
with MTLResourceStorageModePrivate. This is the preferred
mode for best performance and compatibility across different
Metal implementations.
This regression had been introduced inadvertently as part of
enabling imaging for Apple embedded systems.
Fixes#3470
(Internal change: 2352441)
Description of Issue
On Intel Mac with Radeon Pro 560, during the aovInputTask texture creation for the depth buffer, the following error is printed and the texture creation crashes.
-[MTLTextureDescriptorInternal validateWithDevice:] failed assertion Texture Descriptor Validation MTLTextureDescriptor: Depth, Stencil, DepthStencil textures cannot be allocated with MTLStorageModeShared or MTLStorageModeManaged on this device.
It seems that the issue was introduced with #3215, by this line:
https://github.com/PixarAnimationStudios/OpenUSD/blob/release/pxr/imaging/hgiMetal/texture.mm#L27
When the resourceOptions is
MTLResourceStorageModePrivate
it works on that platform.The text was updated successfully, but these errors were encountered: