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

iOS: Support storage images in Metal argument buffers. #2298

Merged

Conversation

billhollings
Copy link
Contributor

On iOS GPUs with Tier1 argument buffer support, Metal does not support writable textures in argument buffers. MoltenVK and SPIRV-Cross were addressing this differently.

  • Set CompilerMSL::Options::ArgumentBuffersTier to align behaviour between MoltenVK and SPIRV-Cross.
  • On iOS Tier1 GPUs, if a descriptor set contains a storage image, don't use a Metal argument buffer for that descriptor set.

Copy link
Collaborator

@cdavis5e cdavis5e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one minor nit.

MoltenVK/MoltenVK/GPUObjects/MVKDescriptorSet.mm Outdated Show resolved Hide resolved
On iOS GPUs with Tier1 argument buffer support, Metal does not
support writable textures in argument buffers. MoltenVK and
SPIRV-Cross were addressing this differently.

- Set CompilerMSL::Options::ArgumentBuffersTier to
  align behaviour between MoltenVK and SPIRV-Cross.
- On iOS Tier1 GPUs, if a descriptor set contains a storage image,
  don't use a Metal argument buffer for that descriptor set.
@billhollings billhollings merged commit ec2b23f into KhronosGroup:main Aug 1, 2024
6 checks passed
@billhollings billhollings deleted the ios-storg-img-argbuffs branch August 1, 2024 21:31
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

Successfully merging this pull request may close these issues.

2 participants