Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash during aovInputTask on Intel mac with Radeon Pro 560 #3470

Open
schevrel opened this issue Dec 18, 2024 · 2 comments
Open

Crash during aovInputTask on Intel mac with Radeon Pro 560 #3470

schevrel opened this issue Dec 18, 2024 · 2 comments

Comments

@schevrel
Copy link
Contributor

schevrel commented Dec 18, 2024

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.

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-10522

(This is an automated message. See here for more information.)

@davidgyu
Copy link
Member

Hi Sebastien, We've merged a fix for this internally. Thanks!

pixar-oss pushed a commit that referenced this issue Dec 23, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants