Skip to content

[MTL] Use scope_exit to auto-close command encoder.#1069

Merged
manon-traverse merged 1 commit intollvm:mainfrom
Traverse-Research:auto-close-command-encoder-metal
Apr 11, 2026
Merged

[MTL] Use scope_exit to auto-close command encoder.#1069
manon-traverse merged 1 commit intollvm:mainfrom
Traverse-Research:auto-close-command-encoder-metal

Conversation

@manon-traverse
Copy link
Copy Markdown
Contributor

When an error occurs during shader reflection parsing in Metal it would not close the command encoder and cause a crash. That crash then prevented printing the actual error that occured. By using a scope_exit we can prevent this issue.

@manon-traverse manon-traverse merged commit e68408d into llvm:main Apr 11, 2026
11 of 13 checks passed
@MarijnS95 MarijnS95 deleted the auto-close-command-encoder-metal branch April 13, 2026 09:32
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.

3 participants